Get geolocation when app not in use

How can we achieve to fetch user GPS location when app not in use?


Please help.

Not in use, do you mean run in background ?


Hace you set "Always Allow" for location tracking.


Note: IOS13 will change the way this works.

May read this: h ttps://www.macrumors.com

"Apple in iOS 13 made changes to the way location tracking permissions work, and there's no longer an option for apps to ask to "Always Allow" location tracking.

Instead, Apple allows users to select "Allow While Using the App," "Allow Once," or "Don't Allow,""

Hi thanks for your reply.


Not in use -> when user has closed the app, after that fetch user GPS location.

Get geolocation when app not in use
 
 
Q