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

Android notifications register without prompt? #447

Closed
ilyakar opened this issue Mar 31, 2018 · 3 comments
Closed

Android notifications register without prompt? #447

ilyakar opened this issue Mar 31, 2018 · 3 comments

Comments

@ilyakar
Copy link

ilyakar commented Mar 31, 2018

Sorry if it’s a silly question, I’m not too familiar with Android workings. So Android users don’t get a prompt for getting notifications, they are just automatically subscribed?

@djalmaaraujo
Copy link

@ilyakar I might be wrong, but after buildTools 25, the user accepts to receive notifications before installing the app. :)

@jkasten2
Copy link
Member

jkasten2 commented Apr 2, 2018

@ilyakar @djalmaaraujo Android does not have a system prompt for notification permissions like iOS does, they are enabled by default. Android 6.0 (API Level 23) did add runtime permission prompts however notifications were not one of them.

If you wish to not auto subscribe your users you may call OneSignal.setSubscription(false); after init on the first app start. Then when you prompt and they accept call OneSignal.setSubscription(true);.

@ilyakar
Copy link
Author

ilyakar commented Apr 2, 2018 via email

@jkasten2 jkasten2 closed this as completed Apr 2, 2018
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