geofencing

iOS - CoreLocation and geofencing while app is closed

南笙酒味 提交于 2019-11-27 16:57:11
I've read many tutorials about geofencing my iOS app (i.e., here ), but none mention whether or not iOS allows any app-specific location data to be handled when the app is closed. For instance, I understand that when the app is in the background, these services will still persist (if coded correctly), but how about when the user double taps the home button and closes the app? Can location data still be obtained? According to the Apple Documentation , in the Using Regions to Monitor Boundary Crossings section: In iOS, the regions you register with the location manager persist between launches

Are Android geofences surviving a reboot?

不羁的心 提交于 2019-11-27 16:03:04
问题 is the system persisting them or do I have to add them again them after reboot? I have not found anything about that in the documentation at https://developer.android.com/training/location/geofencing.html 回答1: Geofences will not persist on reboot. I have tested and you can find the sample here. You have to listen for BOOT_COMPLETED action and add geofences again. Note: If your app installed on external storage(SD card) , you will never receive Boot Complete action. So you have to specify

Tracking multiple (20+) locations with iOS geofencing

主宰稳场 提交于 2019-11-27 10:48:40
An iOS application uses the geofencing for notifying the user about predefined nearby locations. The application is allowed to miss some location (the user is not getting a notification about a nearby location), but it is desirable to keep the missing rate low. One way to implement this would be to start monitoring for significant change locations with startMonitoringSignificantLocationChanges and each time the "location change" event is fired, look for locations within, let say, 500m radius of the reported location. What worries me is the requirement to perform the query for the nearby

Using geofire like geofences

北战南征 提交于 2019-11-27 08:34:45
问题 I want to make an app which send a notification when the user enters in an area. I know that exists Geofire, and I would like to use, because i'm using a Firebase database, however I never used it, and I don't know if it has the same behaviour of Google Geofences. Can someone tell me if I can implement my idea with Geofire? Thank you very much for your answers! 回答1: As seen in the oficial Firebase blog in this post, GeoFire Goes Mobile What is GeoFire? If you're new to GeoFire, it's a

Geofence not triggering

和自甴很熟 提交于 2019-11-27 06:26:40
问题 I'm trying to implement Geofence on my APP and the problem is that is not triggering when I'm on the place that I've marked. The thing that I do is I set the Latitude & Longitude from a Place Picker. The values that I'm getting are fine because I put it on google maps and the place is the correct one, because I've read many answers that people was setting bad values from lat/long . I've two classes : GeofenceSingleton.class and GeofenceTransitionsIntentService . The GeofenceSingleton.class

How to make Geo Fencing alert more accurate in Android

走远了吗. 提交于 2019-11-27 00:58:29
问题 Hello I am trying to add feature of Geo Fence in Android. I am using the http://developer.android.com/training/location/geofencing.html for creating and monitoring Geo Fences. I am using the IntentService for the alert (Entered/Exited) but for me it is not working. But When I went away and come back into region to test it then it didn't work for me. I have turned ON the GPS of the device but device is not connected with internet. Anyone can you please help me to make it more accurate and

How to draw a polygon around a polyline in JavaScript?

你离开我真会死。 提交于 2019-11-26 22:42:13
I want to draw a polygon around a polyline. The polyline in my case is a Google Maps direction and I need to show a polygon around it within the Google Maps canvas. First: For offsetting I use the JavaScript Clipper Library. I have the following polyline (route): I make an offset polygon below using Clipper: I have a working JS Bin example . The code is: <html> <head> <title>Javascript Clipper Library / Offset polyline</title> <script src="clipper.js"></script> <script> function draw() { var polygons = [[{"X":72,"Y":59.45},{"X":136,"Y":66},{"X":170,"Y":99},{"X":171,"Y":114},{"X":183,"Y":125},{

iOS - CoreLocation and geofencing while app is closed

青春壹個敷衍的年華 提交于 2019-11-26 18:50:55
问题 I've read many tutorials about geofencing my iOS app (i.e., here), but none mention whether or not iOS allows any app-specific location data to be handled when the app is closed. For instance, I understand that when the app is in the background, these services will still persist (if coded correctly), but how about when the user double taps the home button and closes the app? Can location data still be obtained? 回答1: According to the Apple Documentation, in the Using Regions to Monitor

Android: Build Polygonal Shape Geofence

妖精的绣舞 提交于 2019-11-26 18:29:29
问题 According to the API documentation, only Circular shape Geofences allowed: https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.Builder And it's looks for example: https://developer.android.com/training/location/geofencing.html But I have 4 locations, representing 4 corners of rectangle, and I want my Geofence to be that rectangle. I want to avoid solution of building my custom location monitoring service extending the functionality of monitoring Geofences,

Tracking multiple (20+) locations with iOS geofencing

对着背影说爱祢 提交于 2019-11-26 17:58:24
问题 An iOS application uses the geofencing for notifying the user about predefined nearby locations. The application is allowed to miss some location (the user is not getting a notification about a nearby location), but it is desirable to keep the missing rate low. One way to implement this would be to start monitoring for significant change locations with startMonitoringSignificantLocationChanges and each time the "location change" event is fired, look for locations within, let say, 500m radius