transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.66k stars 426 forks source link

App freezes when the location permission is denied on IOS #2207

Closed suprith-lumber closed 2 hours ago

suprith-lumber commented 2 hours ago

Your Environment

Expected Behavior

App should work normally irrespective of location permission is provided or denied

Actual Behavior

When location permission is denied app freezes and no actions work

Steps to Reproduce

  1. Ask for location permission on IOS
  2. Deny the location permission
  3. App freezes 4.If location permission is provided, app runs normally

Context

Track location co-ordinates, as discussed in issue https://github.com/transistorsoft/react-native-background-geolocation/issues/2193

Debug logs

imageCan I know what permission the user chooses finally, Don't Allow OR Always Allow OR Allow when using this App. How do I know that?

Logs ``` LOG [onLocation] {"error": 1} ```
christocracy commented 2 hours ago

Plugin version: 14.7.5

This version does not exist.

christocracy commented 2 hours ago

Duplicate #2202

suprith-lumber commented 6 minutes ago

Plugin version: 14.7.5

This version does not exist.

I mean 4.17.5