L llama Member Licensed User Longtime User Oct 27, 2019 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 28, 2019 #2 I expect it to work. Can you provide more information about the error? Upvote 0
L llama Member Licensed User Longtime User Oct 28, 2019 #3 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. Code: Copy #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
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. Code: Copy #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