Request the necessary permissions for the distributor to send messages to the device.
This method will request the POST_NOTIFICATIONS android permission.
If this module is running inside an emulator, this function will always return "denied", as notifications are not supported on emulators.
Returns Promise<string>
A promise that resolves to 'granted' if the permission was granted, 'denied' if the user denied the permission, or 'never_ask_again' if the user chose to never ask again.
Request the necessary permissions for the distributor to send messages to the device. This method will request the
POST_NOTIFICATIONS
android permission. If this module is running inside an emulator, this function will always return"denied"
, as notifications are not supported on emulators.