transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
656 stars 277 forks source link

Persistent display in iOS dynamic island #1430

Closed jfm-so closed 6 days ago

jfm-so commented 5 months ago

Your Environment

Expected Behavior

User prompted to enable location if not enabled. Users location updated in background. User is not notified of these changes.

Actual Behavior

iPhone 15 Pro (and newer models with Dynamic Island) display a persistent blue border and icon if location is enabled even when the app is in background.

This is regardless of whether the user has the location privacy settings set to Always or Only when in use. Both have been tried in testing.

Settings -> Privacy & Security -> Location Services -> (all the way at the bottom) System Services -> Status Bar Icon ^ Toggled off

Privacy -> Location Services -> My App ^ Set to precise and always

If the user clicks the dynamic island, the app opens.

The dynamic island is persistent but can sometimes disappear after 5-10 minutes but will return within another few minutes regardless of location changes.

This has been reproduced on devices only with the dynamic island. Devices without the dynamic island function as expected.

Steps to Reproduce

  1. Download the app on a device that has dynamic island
  2. Enable Geolocation functionality within the app

Context

As with other models, a persistent icon or notification should not be displayed to the user while the app is in the background.

Debug logs

Logs ``` PASTE_YOUR_LOGS_HERE ```
christocracy commented 5 months ago

a persistent icon or notification should not be displayed to the user while the app is in the background.

Why not? I expect to see this.

image

jfm-so commented 5 months ago

Is there any solution for a user who doesn't want to see that? Will changing the level of accuracy or distance have an impact?

christocracy commented 5 months ago

iOS 16 made changes that require the icon to be shown.

jfm-so commented 5 months ago

Is there a way I can subscribe to significant location updates only and have the bar only show when it is updating due to a significant location change?

No need for fleet-level tracking accuracy which I know is closer to the purpose of the plugin, but unfortunately it's the best one that's available for iOS background location updates.

BGHDDevelopment commented 5 months ago

iOS 16 made changes that require the icon to be shown.

I don't see any mention of this in the developer documentation. Could you link it to me? There is a requirement for the Location Services status icon, but that is not within the dynamic island. As seen here That is typically shown as a tiny blue dot or under the control center, even on newer devices with the dynamic island.

The Dynamic Island is mainly cosmetic and typically requires a live activity to be set by the framework or the app. Dev Docs

I am going to do more research later today, but if you could link me to the section in the repo that handles this function I will see what else I can do.

christocracy commented 5 months ago

I don't see any mention of this in the developer documentation

It's not documented.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 days ago

This issue was closed because it has been inactive for 14 days since being marked as stale.