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]: OneSignal not detect granted permission from other plugin on Android #827

Closed
2 of 3 tasks
edisonlsm opened this issue Jan 26, 2024 · 1 comment
Closed
2 of 3 tasks

Comments

@edisonlsm
Copy link

edisonlsm commented Jan 26, 2024

What happened?

When requesting the notification using another plugin, OneSignal on Android 13+ does not recognize that the app already has notification permission without calling requestPermission().

Steps to reproduce?

1. Init OneSignal with the App ID.
2. The subscription shows up on the dashboard when you install the app.
3. Request notification permission using other code/other plugin and not OneSignal itself (i.e., permission_handler) and grant the permission.
4.1. On iOS, the subscription permission status updates automatically to "granted" on dashboard.
4.2. On Android, the subscription permission status stays as "Not granted" until I call the requestPermission() method from OneSignal SDK.

What did you expect to happen?

I expected OneSignal to detect on Android 13+ when the permission was granted, as it does today on iOS.

OneSignal Flutter SDK version

5.0.4

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

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

Hello there--apologies that this issue was missed. Since it's been quite some time since this was originally reported, I'm going to close this issue.

If you are still having problems on the latest version of the SDK, please open a new issue with debug logs reproducing this behavior.

Thanks!

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

2 participants