Hello ,
How can i delay the request permission for the push notification on IOS (keeping in mind im just using FIrebase for just downstream messages no upstream so just a code for request token )?
I have made researches all are saying i cant delay.
If i can request a prompt for request permission can i atleast disable the auto request on app start?
I just added Firebase Messaging to my project. No matter what I do, even if I strip my all code, on iOS the app asks for push notification permission on start.
Using this line changes nothing:
Did you find any solution to this? Im having the same Issue, I want to ask user later when they have used my game for some time to allow notifications, but firebase keep triggering the popup at start
I think I’ve found the solution:
After you build the project for Xcode
Open the Info.plist file in the generated iOS project
There should be a variable in there called UnityNotificationRequestAuthorizationOnAppLaunch which is a Boolean value, by default it is set to 1. Set it to 0 and it should stop asking to show notifications automatically on launch.
Now you can manually ask for push notification permission when you want within your game.