Jump to content
Sign in to follow this  
Rollo62

[iOS] TLocationSensor not firing in iOS12, w/ NSLocationAlwaysAndWhenInUseUsageDescription

Recommended Posts

Hi ,

 

I ran into another iOS problem, which I thought was solved in 10.3 Rio.
Since I updated some iPhone and iPad to iOS12.13, the Location doesn't seem to fire any more.
I was sure this was fixed before, but now it seems to strike back.

 

System(s):

Rx10.3 Rio Ent,  iPhone/iPad iOS12.13


Problem:

The location sensor doesn't send OnLocationChange events at all, while all other events, like OnHeadingChanged are there.

When starting the "Allow" selection appears, but that doesn't start actions.
 

Workarounds tested:

I followed the advices to add NSLocationAlwaysAndWhenInUseUsageDescription  in newer iOS,

also following the nice instruction here from FeLDMARShaL, which is probably the essence of all other descriptions found in the web.

http://fire-monkey.ru/topic/5393-ios-полноценная-фоновая-работа-приложения/#comment-34184

and the description and demo from DelphiWorlds

https://www.delphiworlds.com/2016/02/location-sensor-work-in-the-background-on-ios-9/

 

The solutions described were simple: just add "NSLocationAlwaysAndWhenInUseUsageDescription" key, but that doesn't seem to work always.

In my tests neither the Emba samples, not the DelphiWorlds sample seems to work any more.

 

Does anybody has a clue what else is missing ?

 

Rollo

 

 

Share this post


Link to post

Well Dave, I think I owe you a beer.
Thank you very much for pointing me in the right direction.

I already made such proposal earlier, why is it so hard to find workarounds in the web.
Wouldn't it be about time to have a kind of "CanIUse" and "Polyfills" for Delphi ?

I would rather look into a well sorted database of workarounds, instead of searching Google first.
If anybody at EMBT (or elsewhere) is listening to me, I hope there could be such a valuable search structure too (maybe here in DP as well).

Edited by Rollo62

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×