firebase messaging with provisional: true does not work as expected #7367
Unanswered
uditrugman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to initialize firebase messaging on iOS with provisional permissions set to true.
like this:
NotificationSettings settings = await messaging.requestPermission(
provisional: true,
);
the problem, is once I call "reqestPermission" (like above), the user immediately get a dialog to accept or deny the permission.
but,
according to the documentation, I'd expect that the user will not be presented with any dialog at first, and only the first notification that is sent to the user will include an option to keep or turn off notification.
am I missing something?
what is the correct way to initialize firebase messaging to use provisional mode on iOS?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions