Android Question Ask user for notification permission at the first opening

Mattiaf

Active Member
Licensed User
Hi, I've been looking all around about how to set permission in order to ask the user ( only at the first time the app is opened) to allow my app to send him notification.. I've tried with
B4X:
AddPermission(android.permission.POST_NOTIFICATIONS)

but at the startup, the app doesn't ask any permission...
 

Mattiaf

Active Member
Licensed User
dear Erel.
an example...
Why the os should show the dialog asking for notification permission if I will never send any notification ?

now my real case..
I m using firebase and until i wont send a notification, the os wont ask any permission for notification... is there any way to ask for notification permission as soon as the app is being opened for the first time? like all the big apps when u are starting them ( whatsapp, facebook etc)
 
Upvote 0
Top