cordova-plugin-android-permissions: POST_NOTIFICATION not working

When i request the new POST_NOTIFICATION permission on android platform, nothing be shown

Can someone help me ?

this is my code:

this.androidPermissions.checkPermission(this.androidPermissions.PERMISSION.POST_NOTIFICATIONS).then( result => { console.log('Has permission?', result.hasPermission) if (!result.hasPermission) this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.POST_NOTIFICATIONS); });

About this issue

Most upvoted comments

Hithere, Did you add

<preference name="android-targetSdkVersion" value="33" />

in the config.xml?

Greetings, Simeon

save me! Thanks

Hithere, Did you add <preference name="android-targetSdkVersion" value="33" /> in the config.xml? Greetings, Simeon

where is those config.xml file location ?

For projects created with the Cordova CLI (described in The Command-Line Interface), this file can be found in the top-level directory:

app/config.xml

Link to Cordova Documentation

Hope this helps.

Greetings

I had the same problem. OS: Android 13 Compile with SDK 32 or 33

When I made the “requestPermission” for POST_NOTIFICATIONS, I receive an error :

{
    error: "requestPermission"
    message: "Unknown error."
}

I try to request READ_CONTACTS and I receive success with { hasPermission: false } and nothing shown