GeoTecINIT / nativescript-task-dispatcher

NativeScript-based mobile background task scheduler and dispatcher
Apache License 2.0
18 stars 6 forks source link

Android 12 exact alarm permissions + fixes to battery savings permission request #43

Closed agonper closed 2 years ago

agonper commented 2 years ago

This PR allows the plugin to be aware of if the exact alarm schedule permission has been revoked or not, including the minimal code to ask for the permission again to the user.

Additionally, it also fixes the disable power savings request, waiting for user's reply.

With this, the plugin includes the very minimal functionality to work with Android 12 changes.

agonper commented 2 years ago

Are they tests just for checking Android 12 functionalities?

Wooops, hehehehe. Indeed they are. Indeed, the CI is failing too, which is SDK 27 😅

I'll fix the tests now. Well spotted @matey97!

agonper commented 2 years ago

I think it is fixed now @matey97 😃

agonper commented 2 years ago

Thanks @matey97!!

I'll merge this now, and publish a new release with all the changes 😉