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