Android 12+ notification permissions not requested and showing as blocked
alexp25 opened this issue · comments
Alex Predescu commented
The requestPermission
function does not seem to do anything on Android 12+. When I check the native permissions, notifications show as blocked. As this repo is outdated and doesn't even work on Android 12+, I'm using a fork (https://github.com/fquirin/cordova-plugin-local-notifications) which works fine, except for requesting notification permissions popup.
Your Environment
- Plugin version: https://github.com/fquirin/cordova-plugin-local-notifications
- Platform: Android
- OS version: 13
- Device manufacturer / model: Samsung
- Cordova version (
cordova -v
): 10.0.0 (cordova-lib@10.1.0) - Cordova platform version (
cordova platform ls
): android 11.0.0 - Plugin config
- Ionic Version (if using Ionic) 6.20.1
Expected Behavior
The requestPermission
function should trigger the native popup to allow notifications.
Actual Behavior
The requestPermission
function does not seem to do anything.
Steps to Reproduce
Reproduce this issue; include code to reproduce, if relevant
- ...
- ...
- ...
- ....
Context
What were you trying to do?
Debug logs
Include iOS / Android logs
- ios XCode logs
- Android: $ adb logcat