iOS Question Geofence

llama

Member
Licensed User
Longtime User
Hi, I was wandering if the geofence example still works in the b4i tutorial here,

https://www.b4x.com/android/forum/threads/geofence-monitoring-a-region.81464/

It was written several years ago , I am looking at this in a current project and I cannot get this example to work it compiles fine I get in the textfield status 3 which is an error.

1- If I can confirm this code still works fine then that is a start I am using iphone 6 ios 12

Always thanks for any replies.
 

llama

Member
Licensed User
Longtime User
Hi Erel thanks for getting back, I have found the answer I was missing the following,

ANSWER in the example downloaded I had to add the following to get it to work.

B4X:
#PlistExtra:<key>NSLocationAlwaysAndWhenInUseUsageDescription</key><string>Monitor some region.</string>
#PlistExtra:<key>NSLocationWhenInUseUsageDescription</key><string>Monitor some region.</string>

I found it digging through a few questions in the forum.

At the start you get error represented by 3 until it gets its location, so I had to start and stop a few times on iphone 6 its a bit slow.. the geofence i setup can be delayed but this is for another post and new question.

Appreciate your offer of help always,

Kind Rgds
 
Upvote 0
Top