-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [firebase_messanging] request permission #3888
Comments
I'm having the same problem, it's all set to ture, but only provisional: true, everything else is false!
information: |
I have tested Example app, using my existing firebase project and there is no permission modal as well, permissions are not granted. Tested on iOS 14. Please help
Using permission_handler package as a workaround worked just fine. |
I can't reproduce this on the latest master flutter doctor -v
Have you tried uninstalling the app and then installing it again @danielwalczak ? |
Hmm maybe on master its working, Im using 1.22. Of course I tried reinstall app etc, as I mentioned before using permission_handler works as expected, but using firebase_messaging it just don't show up. If this is working in 1.24 the issue might be in the flutter engine and the way modal is trigger, is not compatible with 1.22.
|
@danielwalczak Could you please provide your |
After updating Xcode to flutter doctor -v
Reproduced using the official example on both simulator and physical. The request dialog did not appear and got
printed by _firebaseMessaging.requestNotificationPermissions(
const IosNotificationSettings(
sound: true, badge: true, alert: true, provisional: true)); Tried calling it multiple times with a button but did not work. Curiously I could not get print(await Permission.notification.request()); results in
also without the dialog but on physical with a release build it worked just fine. |
Bug report
Describe the bug
is
_firebaseMessaging.requestNotificationPermissions
working as expected? I never saw this dialog asking for permissions, but seems like notifications are granted and I receive them properly. I have problem to test and see if the user will receive this popup properly.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: