question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 13.1 Beta - Geolocation not reported when app is in background

See original GitHub issue

Seems like the geolocation is not reported when the app runs in background despite the “Always” permission is set

Your Environment

  • Plugin version: 3.0.6
  • Platform: iOS 13.1 beta
  • OS version:
  • Device manufacturer and model: IPhone 6s
  • Cordova version (cordova -v): 9.0.0 (cordova-lib 9.0.1)
  • Cordova platform version (cordova platform ls): ios 5.0.1
  • Plugin configuration options:
  • Link to your project:

Context

On iOS 13.1 when the user has checked in the settings of the app the “always” permission for the iOS, the location is not beeing recorded after one leaves the app (switches the app to background i.e.).

I can see that on the navtive Cordova Background Geolocation It this issue has been already raised and solved: transistorsoft/cordova-background-geolocation-lt#952

Expected Behavior

The Geolocation should be properly sent even if the app is in the background

Steps to Reproduce

  1. Turn on the “Always” geolocation permission (turned on from the settings page, not from the prompt - as it is no longer available in the iOS 13).
  2. Start tracking the geolocation
  3. Go to the desktop
  4. After approx. 30 seconds the location arrow on the top bar will disappear and the geolocation requests will cease beeing sent to the server.
  5. Going back to the application reenables sending of the geolocation requests

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
tfelicicommented, Sep 11, 2020

I have not done any fork. I am using the vanilla 3.1.0 version

Kind regards

Tom On 11/09/2020 12:05, Anuj Singh wrote:

@tfelici https://github.com/tfelici - Can you please share reference of your plugin if you have forked and made changes? I also facing same issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mauron85/cordova-plugin-background-geolocation/issues/619#issuecomment-691029600, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PYTFAC43VNIMXLF3LQC3SFH76BANCNFSM4IU5AYGQ.

1reaction
tkondejcommented, Nov 4, 2019

@stgraham2000 on iOS 13 you have to enable access to use “geolocation always” in application settings or by accepting additional prompt which popups when after locking and unlocking the phone, check this article for more details https://medium.com/@transistorsoft/ios-13-and-android-q-support-beb7595d2c24

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get geolocation when app not in use | Apple Developer Forums
There are some Location Services API that allows an application to be launched in the background as a result of a location event,...
Read more >
iOS 7.1 to Fix Geolocation Issue That Broke Location-Based ...
In iOS 7, when a user force quits the app, all location-aware background services were disabled. This caused the company to have a...
Read more >
Some iPhone owners are reporting that iOS 13 closes ...
There have many reports across the Internet with iPhone owners bemoaning how aggressive iOS 13 is closing apps in the background.
Read more >
iOS 13 or iPadOS problems and how to fix them - AppleToolBox
AirPort Utility app keeps crashing on iPadOS and iOS 13.1 ... Several users have reported that Apple Music does not sync and the...
Read more >
Will ios terminate the app running in background after a ...
No, there is no specific time defined for this.But app will definitely terminate based upon certain parameter - battery drain, memory footprint issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found