question

Michal Töpfer avatar image
Michal Töpfer asked

Android Push Notifications Permissions (Unity)

Hi, I recently tried to add Push Notifications to my Android Unity game using your new YouTube tutorial and your sample from GitHub (by the way you have a typo in the README - "Deubgger"). I looked into the AndroidManifest.xml file and noticed that it uses quite a lot of permissions. I would like to ask if all of them are really necessarry.

I am not sure if you use GCM or FCM, but according to https://developers.google.com/cloud-messaging/android/android-migrate-fcm you should need some of them. Also I am not sure why you require com.android.vending.BILLING permission.

sdksPush Notifications
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

To be clear, the in-line documentation for the permissions block is correct - we currently use GCM, though we are working on an update to the plugin to move to FCM. The com.android.vending.billing permission is required for validation of Google Play purchases (https://api.playfab.com/Documentation/Client/method/ValidateGooglePlayPurchase). If you won't be using that API, feel free to remove that permission. But otherwise, yes, the permissions are required for the plugin to function effectively.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.