Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: How to customize notification prompts based on user language preference? #1619

Closed
1 task done
sandipshiwakoti opened this issue Jan 3, 2024 · 2 comments
Closed
1 task done

Comments

@sandipshiwakoti
Copy link

sandipshiwakoti commented Jan 3, 2024

How can we help?

I am experiencing issues with customizing notification prompts based on user language preference in the React Native OneSignal library (Version 5.0.4).

Issues

Below are the details of the problem:

  • I am looking for guidance on how to customize the notification prompt. I have explored the official documentation, but I couldn't find specific details for React Native.
  • I want to set the prompt languages based on the user's preference. It seems that the functionality I require is available for the web (referencing: OneSignal Prompt Localization).

Screenshots:

  • The language based on the user's device is not being set for iOS and Android notification prompts.
  1. iOS
Screenshot 2024-01-03 at 13 08 56
  1. Android
Screenshot 2024-01-03 at 13 09 42

How to solve it?

  • I understand that in-app messaging is recommended for customization. However, I would like to know if it's possible to use this approach without disabling the auto prompts.

  • I attempted to use React Native permissions for requesting customized localized permission prompts. While this approach works well, I am unable to disable the auto prompt of OneSignal.

  • Is there an alternative method for customization?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jennantilla
Copy link
Contributor

Hi @sandipshiwakoti thank you for your patience! The prompts from your screenshots are the device's native prompt, which will display in whatever language is set for the device natively. OneSignal can only customize the in-app soft prompt.

Please let us know if you have any additional questions or concerns!

@AstrOOnauta
Copy link

Same here! My device is in a different language than English, but the prompt is showing in english.

@sandipshiwakoti any results for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants