Notification permissions for Android

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): Android

I have implemented the registerForPushNotificationsAsync which works fine normally. Now I wanted to limit the permissions set for the Android app and added this to the app.json file:

"android": {
      "permissions": [
        "NOTIFICATIONS"
      ]

and now registerForPushNotificationsAsync doesn’t work anymore. Are other permission needed?

Thanks!

Hey @tositsa can you elaborate on what doesn’t work anymore means? The more specific the better. Also, registerForPushNotificationsAsync isn’t a method on the notif module.

Hi Adam, thanks for the reply. You are right that function is mine, and it calls Notifications.requestPermissionsAsync. Anyway, the reason it doesn’t work anymore has to do with my implementation of installationId (uuid import issues), so it wasn’t permissions after all.

But I’m still curious, do I need to add "android": { "permissions": [ "NOTIFICATIONS" ] to my app.json?

Cheers