HaylLtd / cordova-background-geolocation-plugin

Background and foreground geolocation plugin for Cordova.
Apache License 2.0
56 stars 64 forks source link

[Android] Plugin doesn't work if notification permission is not allowed #188

Closed HarelM closed 4 months ago

HarelM commented 4 months ago

Describe the bug In previous PR

I've added the notification permission request. It seems that without this permission the plugin won't report GPS locations. So there's a need to allow the user to accept this permission, but not obligate him to approve it.

To Reproduce Steps to reproduce the behavior:

  1. Start location tracking
  2. Allow location permission
  3. Do not allow notification permissions
  4. Plugin reports unauthorized.

Expected behavior Location should still be available even if notification is not allowed.

Desktop (please complete the following information):

Additional context I did not fully test this scenario when introduction the previous feature.