Hi all,
I used geolocation to calculate distances. It works fine on my Android phone. However my son is using an iPhone (with location set to “Always”) and my distances calculation do not work.
Did anyone see geolocation not running properly on iPhone?
Thanks
Guy
I have geo location working on both iPhone and android,
perhaps as a diagnostic have a button that triggers the getcurrentgeo address, use this to create a debug somewhere - could even be on the screen, this will check and see if you are actually getting the location on a trigger.
if not you may see something in the log as to why it’s not got the location.
We had issues with ours and thought it was the app, so checked externally and found that the users location was not known to other apps too.
we also have to close the app and reopen the app if you change the location settings on the phone.
That “Location Not Available” message can be a real head-scratcher! Let’s try to figure out what’s going on. First, the most basic thing: make sure Location Services are actually turned on for your iPhone. Go to Settings > Privacy & Security > Location Services and make sure it’s toggled on. While you’re there, check the settings for the specific app that’s giving you the error. Make sure it’s allowed to access your location, either “While Using the App” or “Always.”
Sometimes, Location Services can get a little confused. Try toggling Location Services off and on again. It’s a quick refresh that sometimes does the trick. Also, make sure your iPhone’s date and time are set correctly. An incorrect date and time can sometimes interfere with location services. You can find these settings in Settings > General > Date & Time.
Another thing to consider is your network connection. Location Services often rely on a combination of GPS, Wi-Fi, and cellular data. Make sure you have a decent connection. Try turning Wi-Fi off and on again, or even toggling Airplane Mode on and off.
Sometimes carriers release updates that can affect location services. You can usually find these in your iPhone’s settings, under General > About. Also, make sure your iPhone’s software is up-to-date.
If none of these solutions work, you can follow for best instruction below.
https://thegeekpage.com/location-not-available-issue-on-iphone/