Anyone else use Geofence?

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
After last iOS update (.02), when leaving the geofence boundary and when entering the geofence boundary, the app seems to just close.

100% of the time when entering the boundary, and probably most of the time when leaving.

1. Does anyone else use geofence in the BI iOS app?
2. Has anyone else had this issue?


Sent from my iPhone using Tapatalk
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
I don't much these days but I can try it when I go out later tonight.

How do you have radius set and what are you doing based on geofence? I'll try to replicated if it's not too much to set up quickly.
 

mikeynags

Known around here
Joined
Mar 14, 2017
Messages
1,034
Reaction score
940
Location
CT
I use it all the time. Have seen that issue yet.

What version of iOS are you running?


Sent from my iPhone using Tapatalk
 

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
IOS 15.0
I have it set very close, 3 meters is what it says, but in reality it seems to kick in around 100 yards (about 8-9 houses away is how I’m measuring) .

I have it send MQQT to tell my Homseer to lock my back door. And when I return, I have it run an Alexa routine that turns on a light, turns on the Fire TV and turns on whole home music.

Now the door does not always lock and the Alexa routine is not always kicking in. I know, lots of variables and potential points if failure here, but up until the BI iOS update, it never failed.

With the BI App closing at each geofence status update, it can’t be just a coincidence.


Sent from my iPhone using Tapatalk
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
Yeah, that's too much to try to replicate obviously. I set mine up just to send a notification when entering/leaving as a test and I don't have any problem with the app closing. Shows the geofence status updating and log shows same, app continues to run fine. I'm on IOS 15.1.1, BI 5.5.2.5, and BI app 2.02.02.
 

mikeynags

Known around here
Joined
Mar 14, 2017
Messages
1,034
Reaction score
940
Location
CT
I do the same and use a 50 meter radius.


Sent from my iPhone using Tapatalk
 

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
Thanks everyone for testing. Might need to up date the actual iOS to the latest version. 15.2 I think. If anyone else sees this let me know. I will update if the Apple OS fixes anything for closure.
 

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
Update and further information. Hoping someone knows the BI iOS App logs better than I do.
1. Updated IPhone iOS to 15.2 (latest).
2. Tried it out with a trip out for a quick lunch.
3. Still closed app when app hits the "outside the geofence" (leaving) status update.
4. Still closed app when app hits the "inside the geofence" (returning) status update.

I sent the BI App log to myself, made some notes at to where I "THINK" things are happening (leaving, returning, etc.) and pasted said log below.
I am wondering if anyone can see anything in here that might shed some light as to what might be going on?


Code:
At Home, Opening App to see status:

2022-31-12 12:57:52: didFinishLaunchingWithOptions
2022-31-12 12:57:54: didDetermineState: 1
2022-31-12 12:57:54: http://<internal LAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 39a417725695504c36f301d5045f4641;
}
2022-31-12 12:57:54: http://<internal LAN ip address>:8081/json <-- {"result":"success","session":"39a417725695504c36f301d5045f4641"}
2022-31-12 12:59:3: didDetermineState: 1
2022-31-12 12:59:3: http://<external WAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 7cff45060951768a007a7ca434613412;
}
2022-31-12 12:59:3: http://<external WAN ip address>:8081/json <-- {"result":"success","session":"7cff45060951768a007a7ca434613412"}
2022-31-12 13:2:22: didDetermineState: 1
2022-31-12 13:2:22: http://<external WAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 6ae84fa17143636f18d73e8063fe1f60;
}
2022-31-12 13:2:22: http://<external WAN ip address>:8081/json <-- {"result":"success","session":"6ae84fa17143636f18d73e8063fe1f60"}
2022-31-12 13:5:8: didDetermineState: 1
2022-31-12 13:5:8: http://<external WAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 72713cbe1ebb30211edf0325052a5ffd;
}

Car Pulls In to Pick Me Up (Somewhere in here):

2022-31-12 13:5:8: http://<external WAN ip address>:8081/json <-- {"result":"success","session":"72713cbe1ebb30211edf0325052a5ffd"}
2022-31-12 13:5:12: Requesting image/gif from http://<external WAN ip address>:8081/thumbs/alert.1085077064.gif?session=63400445572175c8332d74593c640e21
2022-31-12 13:5:12: Requesting image/gif from http://<internal LAN ip address>:8081/thumbs/alert.1085077064.gif?session=63400445572175c8332d74593c640e21
2022-31-12 13:5:16: downloadTaskWithURL http://<external WAN ip address>:8081/thumbs/alert.1085077064.gif?session=63400445572175c8332d74593c640e21 succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_vg8Zy2.tmp
2022-31-12 13:5:16: willPresentNotification
2022-31-12 13:5:16: handleRemoteNotification: Front1 at 1:05:05 PM Car:81,car:65, doorbell.wav 252
2022-31-12 13:5:16: Server now Bunker49 --> 1 server=Bunker49, cam=Front 1, wanip=<external WAN ip address>:8081
2022-31-12 13:5:16: downloadTaskWithURL http://<internal LAN ip address>:8081/thumbs/alert.1085077064.gif?session=63400445572175c8332d74593c640e21 succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_8mbkyZ.tmp


Car Pulling out from house:

2022-31-12 13:5:24: Requesting image/gif from http://<external WAN ip address>:8081/thumbs/alert.410132480.gif?session=16450ee5716679a41a5162a753dc33ff
2022-31-12 13:5:25: Requesting image/gif from http://<internal LAN ip address>:8081/thumbs/alert.410132480.gif?session=16450ee5716679a41a5162a753dc33ff
2022-31-12 13:5:27: downloadTaskWithURL http://<internal LAN ip address>:8081/thumbs/alert.410132480.gif?session=16450ee5716679a41a5162a753dc33ff succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_1Cl0vJ.tmp
2022-31-12 13:5:27: willPresentNotification
2022-31-12 13:5:27: handleRemoteNotification: Drive at 1:05:10 PM Car:85,truck:58, long-chime-sound.wav 253
2022-31-12 13:5:27: Server now Bunker49 --> 1 server=Bunker49, cam=Driveway, wanip=<external WAN ip address>:8081
2022-31-12 13:5:28: downloadTaskWithURL http://<external WAN ip address>:8081/thumbs/alert.410132480.gif?session=16450ee5716679a41a5162a753dc33ff succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_2tMLXq.tmp


Guessing this is where the App says I left the “inside” GeoFence area,
And somewhere in here the App just closes / “goes away”:

2022-31-12 13:6:27: didExitRegion: Bunker49
2022-31-12 13:6:27: http://<internal LAN ip address>:8081/json --> {
cmd = geofence;
inside = 0;
session = 7c543c4604cfd0f797adc20dcbbce23a;
uuid = "<MY UUID>";
}
2022-31-12 13:6:27: http://<external WAN ip address>:8081/json --> {
cmd = geofence;
inside = 0;
session = 7c543c4604cfd0f797adc20dcbbce23a;
uuid = "<MY UUID>";
}
2022-31-12 13:6:27: didDetermineState: 2
2022-31-12 13:6:27: http://<external WAN ip address>:8081/json <-- {"result":"success","session":"7c543c4604cfd0f797adc20dcbbce23a"}
2022-31-12 13:6:27: Geofence status updated successfully: Bunker49
2022-31-12 13:6:27: UNMutableNotificationContent
2022-31-12 13:6:27: willPresentNotification



Returning Home:

2022-31-12 13:55:52: Requesting image/gif from http://<external WAN ip address>:8081/thumbs/alert.3088622696.gif?session=2bba74623d5c0d6c754f51380fb70b2d
2022-31-12 13:55:52: Requesting image/gif from http://<internal LAN ip address>:8081/thumbs/alert.3088622696.gif?session=2bba74623d5c0d6c754f51380fb70b2d
2022-31-12 13:55:54: downloadTaskWithURL http://<external WAN ip address>:8081/thumbs/alert.3088622696.gif?session=2bba74623d5c0d6c754f51380fb70b2d succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_ogBZXs.tmp
2022-31-12 13:56:25: Requesting image/gif from http://<external WAN ip address>:8081/thumbs/alert.3617126528.gif?session=150045eb6a9f483271e846760d933495
2022-31-12 13:56:25: Requesting image/gif from http://<internal LAN ip address>:8081/thumbs/alert.3617126528.gif?session=150045eb6a9f483271e846760d933495
2022-31-12 13:56:26: downloadTaskWithURL http://<internal LAN ip address>:8081/thumbs/alert.3088622696.gif?session=2bba74623d5c0d6c754f51380fb70b2d succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_qFPk07.tmp
2022-31-12 13:56:27: downloadTaskWithURL http://<internal LAN ip address>:8081/thumbs/alert.3617126528.gif?session=150045eb6a9f483271e846760d933495 succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_CFsIpp.tmp
2022-31-12 13:56:27: downloadTaskWithURL

Guessing this is where I entered back into my “inside” the Geofence area,
But don’t see anything log entry here for "didEnterRegion" like you see above for exiting the area: didExitRegion: Bunker49
App also just closed / disappeared somewhere in the area as well.


http://<external WAN ip address>:8081/thumbs/alert.3617126528.gif?session=150045eb6a9f483271e846760d933495 succeeds 200/image/gif /private/var/mobile/Containers/Data/PluginKitPlugin/353E89A5-CD2F-4970-AAFD-A1EF912B51F7/tmp/CFNetworkDownload_TH5UWb.tmp
2022-31-12 13:59:48: didFinishLaunchingWithOptions
2022-31-12 13:59:50: didDetermineState: 1
2022-31-12 13:59:50: http://<external WAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 3f7d0dd468f926d107b1797e205e6ec9;
}
2022-31-12 13:59:50: http://<external WAN ip address>:8081/json <-- {"result":"success","session":"3f7d0dd468f926d107b1797e205e6ec9"}
2022-31-12 13:59:51: willPresentNotification
2022-31-12 13:59:53: didFinishLaunchingWithOptions
2022-31-12 13:59:54: didChangeAuthorizationStatus: 3
2022-31-12 13:59:55: didDetermineState: 1
2022-31-12 13:59:55: http://<internal LAN ip address>:8081 --> {
cmd = geofence;
inside = 1;
session = 2b015dc31b7d0e9102a93da034252cc8;
}
2022-31-12 13:59:55: http://<internal LAN ip address>:8081/json <-- {"result":"success","session":"2b015dc31b7d0e9102a93da034252cc8"}
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
Don't see any errors or crash messages. Probably have to look at some other log to see that.

I've been playing around with mine quite a bit doing some other things using the geofence since you'd reminded me of it and haven't seen any problems.

Send a message to support and see what they say.
 

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
Thought I would take a second to update anyone that might be interested in this subject as to the latest status.
1. Update iPhone iOS to 15.2 - BI iOS app still closed on GeoFence Update.
2. Updated BI software to 5.5.4.4 with BI iOS app 2.03.01. This caused me to now have a new mobile "DeviceID" in BI, so I had to configure the GeoFence settings in BI and set the radius in the BI iOS app.
a. There might have been a way to keep the settings / deviceID when I updated the BI iOS app, but didn't see it.
b. Thought I had everything working and the problem fixed, but second and following tests failed exactly as before.
c. Note: I had played with a lot of settings.
3. From day 1 of using GeoFencing I had the enter / leave GeoFence send me an alert in on the BI iOS app which always worked until this problem started (BI iOS app closes when GeoFence status changes).
4. I decided to remove the IOS alert on enter / leaving GeoFence and BINGO the app works as expected!

In summary, at some point, having BI GeoFence send my iOS app an alert saying "Your Home" or "Your Away" (really only to assure the feature was working) seemed to be suddenly make my BI iOS app close on a GeoFence Status Update. Not sure exactly why this just seemed to start happening out of nowhere, but I can't put a rhyme or reason to it. I just know that turning on sending an alert to the BI iOS mobile device ONLY on a GeoFence Update caused my all to BI iOS app to crash. Other Alerts (ie. motion detected ect.) always have and still do work with no issue.

Just thought I would update the group and always open to thoughts if there are any.
 
Last edited:

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
That's odd. That's the same and only thing that I had mine do when I set it up to test above.
 

kc8tmv

Getting the hang of it
Joined
May 27, 2017
Messages
177
Reaction score
82
Location
Cincinnati, Ohio
That's odd. That's the same and only thing that I had mine do when I set it up to test above.
I might go back and try it again when a new version comes out, but for now I am happy with where it's at.
Things that make you go "hmmmmmm".
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,387
Yeah, if it's working, take it and move on. ; )
 
Top