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

BackgroundGeolocation.insertLocation triggers iOS Permission Dialog #2195

Open juscyllan opened 3 weeks ago

juscyllan commented 3 weeks ago

Your Environment

Expected Behavior

Invoking BackgroundGeolocation.insertLocation shouldn't trigger the iOS permission dialog.

Actual Behavior

Invoking BackgroundGeolocation.insertLocation should not trigger the iOS permission dialog.

Steps to Reproduce

  1. Do not ask for location permissions;
  2. Invoke BackgroundGeolocation.insertLocation with custom location;
  3. Observe the iOS permission dialog.

Context

Insert a custom location.

Debug logs

Logs ``` empty. ```
jwaldrip commented 3 weeks ago

@christocracy: @juscyllan is reporting this for us at @gigsmart. Let us know when you are able to diagnose. :-) Thank you.

christocracy commented 3 weeks ago

I tried this. I do not see a permission request when I call .insertLocation(data) (and looking at the code, there is no reason that should occur).

Show me the exact code you're executing.