adolfintel / OpenPods

The Free and Open Source app for monitoring your AirPods on Android
https://fdossena.com/?p=openPods/index.frag
GNU General Public License v3.0
931 stars 161 forks source link

Properly handle POST_NOTIFICATION permission for Android 13 #155

Closed oddlyspaced closed 1 year ago

oddlyspaced commented 1 year ago

Since Android 13, Google introduced the POST_NOTIFICATION permission to only allow an app to post notifications if the permission is granted at runtime.

This small PR adds in the required logic to ask for the permission on Android 13 and above.