Hi all.
I have a question about this example - Geofence - Monitoring a region https://www.b4x.com/android/forum/threads/geofence-monitoring-a-region.81464/
I installed it on my iPhone 11 iOS ver. 18.6.2. The only changes I did is this
When I run this example and click on Start it show code 3 - error. In the log the error is
What am I doing wrong?
This example doesn't ask for a location permission. When I go to the settings to check the location permission granted to this example I see 2 options
That's what I see in the settings
Is it Ok?
Thank you.
I have a question about this example - Geofence - Monitoring a region https://www.b4x.com/android/forum/threads/geofence-monitoring-a-region.81464/
I installed it on my iPhone 11 iOS ver. 18.6.2. The only changes I did is this
B4X:
Sub btnStart_Click
'CircularRegion = CreateCircualRegion(32.8373001, 35.2697, 100, "region2")
CircularRegion = CreateCircualRegion(40.5764517,-73.9663897, 1000, "region2")
MonitorRegion(CircularRegion)
End Sub
When I run this example and click on Start it show code 3 - error. In the log the error is
B4X:
Application_Start
Application_Active
This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain both “NSLocationAlwaysAndWhenInUseUsageDescription” and “NSLocationWhenInUseUsageDescription” keys with string values explaining to the user how the app uses this data
Start monitoring: CLCircularRegion (identifier:'region2', center:<+40.57645170,-73.96638970>, radius:1000.00m)
Error: Error Domain=kCLErrorDomain Code=4 "(null)"
What am I doing wrong?
This example doesn't ask for a location permission. When I go to the settings to check the location permission granted to this example I see 2 options
That's what I see in the settings
Is it Ok?
Thank you.
Attachments
Last edited: