You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I have 2 devices with different languages with the same external_id?
For example 1 device with the language in Spanish and another device in the language English
How can I assign the language to the device I have subscribed to? Right now when I use setLanguage the language is set in all subscriptions.
This is my code in flutter (onesignal_flutter: ^5.2.9):
First I do the login with an external id and then I assign the language to it.
var localeName = AppLocalizations.of(context)!.localeName;
OneSignal.login('testExternalId');
OneSignal.User.setLanguage(localeName);
Examples of languages I assign are: 'es' and 'en'
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
fsilvafactoriabiz
changed the title
[question]: SetLanguage Subscription
[question]: Can I have 2 devices with different languages with the same external_id?
Feb 21, 2025
Unfortunately, you cannot set 2 languages for the same user. Language is treated and stored as a user-level property instead of at the device or subscription level. If you have a need for this, I recommend you to try using data tags to meet your needs.
Can I have 2 devices with different languages with the same external_id?
For example 1 device with the language in Spanish and another device in the language English
How can I assign the language to the device I have subscribed to? Right now when I use setLanguage the language is set in all subscriptions.
This is my code in flutter (onesignal_flutter: ^5.2.9):
First I do the login with an external id and then I assign the language to it.
var localeName = AppLocalizations.of(context)!.localeName;
OneSignal.login('testExternalId');
OneSignal.User.setLanguage(localeName);
Examples of languages I assign are: 'es' and 'en'
Code of Conduct
The text was updated successfully, but these errors were encountered: