I only get location updates/geofence updates when the app is running. I’ve put
"UIBackgroundModes": ["location", "fetch"]in my app.json (and it shows up in my Info.plist), I’ve defined the task in the global scope, have given my app “always” as well as “background refresh” permissions, but I can’t seem to get it to run in the background.
I know it doesn’t work because there are no requests being made to the server until I opened the app, nor any LocalNotifications generated when I entered and exited two geofences this morning.
I drove 6.5 miles to the gym and back (well over apple’s “significant” location change threshold, on top of the gym being a geofenced region passed to the task), and there was no significant location update nor a geofence update. What am I doing wrong?