Android 13 - can't request permission
brorlarsnicklas opened this issue · comments
Trying to request permission for notifications but I just get the error response of "permission is not granted". Shouldn't a pop up be shown?
cordova.plugins.firebase.messaging.requestPermission({forceShow: false}).then(function() {
console.log("Push messaging is allowed");
});
This plugin is probably obsolete, use another plugin cordova-plugin-firebasex
cordova-plugin-firebasex looks like so much more, don't want to add things I don't use really.
Use this fix:
#227
@fredriksthlm tried adding the hotfix but "cordova plugin add https://github.com/fluxc/cordova-plugin-firebase-messaging.git" seems to crash the app for me at runtime, any idea what's wrong?
EDIT:
My bad, running the following command against the main repo fixed the crash.
"cordova plugin add https://github.com/chemerisuk/cordova-plugin-firebase-messaging.git#4010299b0170c03a76c1329b8983f07e8e997de5"
@fredriksthlm tried adding the hotfix but "cordova plugin add https://github.com/fluxc/cordova-plugin-firebase-messaging.git" seems to crash the app for me at runtime, any idea what's wrong?
EDIT: My bad, running the following command against the main repo fixed the crash. "cordova plugin add https://github.com/chemerisuk/cordova-plugin-firebase-messaging.git#4010299b0170c03a76c1329b8983f07e8e997de5"
You figure this out? I'm having same issue.
@fredriksthlm tried adding the hotfix but "cordova plugin add https://github.com/fluxc/cordova-plugin-firebase-messaging.git" seems to crash the app for me at runtime, any idea what's wrong?
EDIT: My bad, running the following command against the main repo fixed the crash. "cordova plugin add https://github.com/chemerisuk/cordova-plugin-firebase-messaging.git#4010299b0170c03a76c1329b8983f07e8e997de5"
thank you removing cordova plugin remove cordova-plugin-firebase-messaging
and then adding cordova plugin add https://github.com/chemerisuk/cordova-plugin-firebase-messaging.git#4010299b0170c03a76c1329b8983f07e8e997de5
fixed it for now
Any updates on this? I'm still having issues with this.
Fixed in v8.