aaronpk / Overland-iOS

📌 GPS logger for iOS devices
https://overland.p3k.app
Apache License 2.0
599 stars 93 forks source link

iOS 16.4.1 - no longer tracks in background #122

Closed momonala closed 1 year ago

momonala commented 1 year ago

Hello! First off, thanks for the awesome app. I recently updated my iPhone 13 to iOS 16.4.1. Since then, Overland is no longer collecting data in the background. If I have the app on in the foreground, I collect one data point per second, as I always have. But if I close the phone or the app, ride my bike around, no new points are collected. Previously, I would always collect points at about 1 point/second while moving. I still get the location icon on the top bar when the app is closed, but its white and not blue.

I double checked my security settings, and "allow location access" is set to always, and precise location is on. Attached are my app settings (high res profile).

Any ideas on what could have changed? Hopefully its a configuration issue and not an app or security issue. IMG_4190

iamchrishckns commented 1 year ago

I was facing the same issue. I searched around a bit and found a article describing the issue. I don't have the article on hand right now but it had something to do with how "significant location" updates are handled.

When I disabled the "significant location" option I received all location data in the background again.

lostfocus commented 1 year ago

I tried that this morning and my phone immediately started heating up. It's all a bit weird since the last iOS update.

aaronpk commented 1 year ago

Looks like we're going to need to make some changes for the latest iOS version, as described here:

https://developer.apple.com/forums/thread/726945

VerTiGoEtrex commented 1 year ago

@aaronpk do you still intend to maintain this? I've been enjoying tracking my location since 2019 (thanks!)

It looks like the easiest solution, by far, is to just set showsBackgroundLocationIndicator to true

aaronpk commented 1 year ago

Yes, I am planning to update it, but it's been a few years since I've compiled it so I need to make it compile in the latest XCode again: #124

naibed2000 commented 1 year ago

hello, with iOS 17 now released, do you have any news on overland update? I really miss it :(

gedankenstuecke commented 1 year ago

I'd been wondering about the issue too and just saw that this has been already reported! @aaronpk is there anything that we could do to help? 🙂

aaronpk commented 1 year ago

So I'm confused here because I'm still running this app on my phone, updated to iOS 17, and it's fine. But I might be using different settings that others here. Can you share what settings you have it at that's causing the app to shut off in the background? Here are my settings.

IMG_2111

anyway, if anyone has iOS development experience, the first thing I need to do with this is to get it to build in the latest version of XCode, I'm guessing there will be a handful of dependencies to update and probably some syntax changes and UI updates. Any help with that would be appreciated!

gedankenstuecke commented 1 year ago

Thanks @aaronpk, I've tried adapting my settings to yours and will see how that works out. The changes I made were disabling "Significant location", which was set to enabled and is now disabled and "resume with geofence".

According to the docs I'd have guessed that if anything both of these should improve sampling frequency, but I'll keep you updated! :)

aaronpk commented 1 year ago

I've just made a bunch of changes to support the new permissions model in iOS 16/17. This will go out in the next update in the App Store: #41

dontic commented 11 months ago

@aaronpk I've had the same issue since iOS16.4 (https://developer.apple.com/forums/thread/726945). But testing version 1.3 on iOS 17.1.1 yields the same results.

Worth noting that I thought it may be my iPhone (iPhone 11 pro), but then I checked other apps that use the location in the background: such as Home Assistant or Danalock and they work completely fine.

I've recently been on a trip so I took advantage to test this further.

Preparation:

Findings:

iOS 17.1.1 Nov 2023 active testing

image

iOS 17.1.1 Nov 2023 active testing

image

iOS 17.1.1 Nov 2023 pasive testing

Leaving the app in the background image

iOS ? Jan 2023

App closed image

aaronpk commented 11 months ago

@dontic thanks for the detailed testing! I do suspect it's the "Pause Updates Automatically" setting that's causing this.

But based on that forum post, I am adding a new setting to let you turn on showing the background location indicator to see if that helps too. I'm pushing a new TestFlight build now, so you should get a notice about it shortly.

gedankenstuecke commented 11 months ago

The "updates automatically" seems indeed to be the issue, I changed the options as outlined above and it works fine again!

VerTiGoEtrex commented 9 months ago

@aaronpk are you planning on pushing a new version to the App Store? I still have issues, despite trying everything in this thread.

aaronpk commented 9 months ago

Yes, I am reasonably confident the new beta version is working now, I've been running it myself for a few weeks. I'm going to push this out to the app store shortly.