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
Comments
@ilyakar I might be wrong, but after buildTools 25, the user accepts to receive notifications before installing the app. :) |
@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 |
Thank you for explaining, Josh. That’s what I was hoping for.
Kind regards,
Ilya
… On 2 Apr 2018, at 21:27, Josh Kasten ***@***.***> wrote:
@ilyakar @djalmaaraujo Android does not have 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);.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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?
The text was updated successfully, but these errors were encountered: