TTMSFMXNativeCLLocationManager Background

Hi Forum,

The TTMSFMXNativeCLLocationManager has a property AllowsBackgroundLocationUpdates.
It's in the object inspector.

What does it do?
And how to set it to true? At designtime It refuses to get set to true....



We have fixed the issue with the property not being able to set to true at designtime.
Please note that this property can be set at runtime, when the iOS location manager is instantiated.
The AllowsBackground property has the following description at the Apple Developer website

Apps that want to receive location updates when suspended must include the UIBackgroundModes key (with the location value) in their app?s Info.plist file and set the value of this property to YES. The presence of the UIBackgroundModes key with the location value is required for background updates; you use this property to enable and disable the behavior based on your app?s behavior. For example, you might set the value to YES only after the user enables features in your app where background updates are needed.

When the value of this property is NO, apps receive location updates normally while running in either the foreground or background based on its current authorization. Updates stop only when the app is suspended, thereby preventing the app from being woken up to handle those events.

The default value of this property is NO. Setting the value to YES but omitting the UIBackgroundModes key and location value in your app?s Info.plist file is a programmer error.

Kind Regards, 

Pieter Scheldeman2016-01-22 08:51:25


Do you have any idea when this fix will become available?



This fix we have applied is only because the designtime AllowsBackground property is set to False by default. The location manager can only be used at runtime so please set the property AllowsBackground to true in the formcreate programmatically. This should work with or without the fix.

We will release TMS iCL with the fix on monday.