In a flutter app operating on an iOS system, utilizing the firebase_messaging bundle, when receiving a push notification by way of APNS that has a localized key, i.e. the alert a part of the payload incorporates one thing like

"loc-key" : "GAME_PLAY_REQUEST_FORMAT",

the push notification will solely show the important thing GAME_PLAY_REQUEST_FORMAT except you do one thing to localize it on the system
(cf. https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification or https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html).
The usual approach for this appears to be so as to add the important thing to the Localizable.strings. So the query presents itself:

How do you add Localizable.strings to an present Flutter venture?

By admin

Leave a Reply

Your email address will not be published.