The language of push notifications sent via Pushwoosh is determined by a Language tag associated with each device.
By default, our SDK will assign the device language as the Language tag. However, you may redefine it with setLanguage()
.
How the Language Tag is Set: Our SDK automatically detects your device's current language setting and updates this 'Language' tag. This update typically happens when the app is launched for the first time, or the app is brought from the background to the foreground.
There might be a short delay for this language change to be registered by our servers after you've updated your device's language.
If Notifications Are in the Old Language: If you've recently changed your device's language and are still receiving notifications in the previous language, please try the following:
- Completely close the application on your device.
- Wait for a couple of minutes.
- Relaunch the application.
This action should trigger the SDK to update the 'Language' tag with the new device language.
Using App-Specific Language Settings: If your application allows users to select a language that is different from the device's system language, you can ensure notifications match the app's chosen language. To do this, you can programmatically set the 'Language' tag using the setLanguage()
method provided in our SDK.
For example, if a user selects French within your app, you would call setLanguage("fr")
(using the appropriate language code).
For detailed instructions on implementing setLanguage()
, please refer to API docs:
Comments
0 comments
Article is closed for comments.