OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 215 forks source link

[question]: v5 setLanguage not respected by notification #770

Closed foramgmits closed 7 months ago

foramgmits commented 1 year ago

How can we help?

OneSignal.User.setLanguage("en");

I've used this method setLanguage($languageCode).I want to know how it works because I've implemented this whenever user's application language changes but notification always triggered in default langauge '-en'.

Code of Conduct

nan-li commented 10 months ago

Hi @foramgmits,

Thank you for reaching out to us and I do apologize for the delay. If you are still seeking an answer to your question, setLanguage($languageCode), it attaches your designated language to the current user in the SDK.

I've implemented this whenever user's application language changes but notification always triggered in default langauge '-en'.

Can you tell me more about this issue you are running into?

  1. What version of the OneSignal Flutter SDK are you using?
  2. How are you sending the notification and setting languages?
  3. Does this user have the language set when you look at the record in the OneSignal dashboard?
  4. Is this affecting iOS, Android, or both?
jennantilla commented 7 months ago

Closing due to no response. @foramgmits if you are still having issues, please let us know!