dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
570 stars 457 forks source link

Feature request #864

Open ItsasoAguirre opened 3 months ago

ItsasoAguirre commented 3 months ago

Starting from SDK 33 (Android 13) it seems now that a runtime permission is necessary to manage notifications. See https://developer.android.com/develop/ui/views/notifications/notification-permission

Targeting SDK 33 with current version of the plugin leave the notification permission to off without any possibility to enable it even manually via settings menu.

Proposed solution:

Add android.permission.POST_NOTIFICATIONS in the manifest Implement grantPermission method that was reserved to iOS before and ask for this runtime permission if the SDK is 33+