Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ask permission for push notification

I'm working an application and I need to use push notification. I know that push notification are a normal permission so I can't ask it at run time. But I would insert in the permission when the user downloads and installs the application, and the notice that the application should send a push notification.

How can I do it? Do I have to insert something in the manifest?

like image 217
Paul Avatar asked Jun 01 '17 10:06

Paul


1 Answers

As answered here, you don't need permissions for push notifications.

Actually the push notification permission lie in the normal category permission like Internet permission, not in dangerous category permission.

You don't have to ask for push notification permissions.

While Contacts/Locations are the dangerous permissions because you are accessing user data. So it is always needed to ask the user to allow it.

https://developer.android.com/guide/topics/security/permissions.html

like image 97
Kunal Chawla Avatar answered Sep 28 '22 19:09

Kunal Chawla