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

[BUG] When negating permission the first time on iOS, the app needs to be killed to read new permission gave from the ios settings #112

Closed
GiampaoloGabba opened this issue Sep 24, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GiampaoloGabba
Copy link
Contributor

GiampaoloGabba commented Sep 24, 2020

If i negate notification permissions the first time the NotificationPlugin asks for them, and then i go to the iOS settings (while my app is still in background) and allow the notification, the NotificationPlugin dont "see" the new permission unless the app is killed and reopened

I think this is due the static bool _alertsAllowed always return its value when already sets.
so when we change the permissions while the app is still in memory, the new check will never happen until the app is killed.

I tried this on iOS only, maybe there is the same issue in Android.

i see two options:

  • the plugin needs to always check it's permission (at least when the "allow" is "false"

  • let us to check and request permission directly in shared code

@GiampaoloGabba GiampaoloGabba added the bug Something isn't working label Sep 24, 2020
@thudugala
Copy link
Owner

@GiampaoloGabba If a user say no to notification. Wouldn't this correction keep asking for it ? even user said no.

@thudugala
Copy link
Owner

@GiampaoloGabba Published under v5.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants