geofencing

Geo-Fencing didEnterRegion and didExitRegion methods not called?

霸气de小男生 提交于 2019-12-02 10:25:23
问题 Hi Guys Am working on Geo-Fencing! Location manager didDetermineState is calling properly but when i entered region didEnterRegion and didExitRegion never been invoked. Here my code is **ViewController.m** GeofenceMonitor * gfm = [GeofenceMonitor sharedObj]; NSMutableDictionary * fence1 = [NSMutableDictionary new]; [fence1 setValue:@"office" forKey:@"identifier"]; [fence1 setValue:@"13.04765701" forKey:@"latitude"]; [fence1 setValue:@"80.18752289" forKey:@"longitude"]; [fence1 setValue:@"100"

Geo-Fencing didEnterRegion and didExitRegion methods not called?

[亡魂溺海] 提交于 2019-12-02 05:39:47
Hi Guys Am working on Geo-Fencing! Location manager didDetermineState is calling properly but when i entered region didEnterRegion and didExitRegion never been invoked. Here my code is **ViewController.m** GeofenceMonitor * gfm = [GeofenceMonitor sharedObj]; NSMutableDictionary * fence1 = [NSMutableDictionary new]; [fence1 setValue:@"office" forKey:@"identifier"]; [fence1 setValue:@"13.04765701" forKey:@"latitude"]; [fence1 setValue:@"80.18752289" forKey:@"longitude"]; [fence1 setValue:@"100" forKey:@"radius"]; [fence1 setValue:@"11" forKey:@"id"]; NSMutableDictionary * fence2 =

Permission exception even though permission is set in manifest [duplicate]

纵然是瞬间 提交于 2019-12-01 14:31:46
This question already has an answer here: Android permission doesn't work even if I have declared it 12 answers In my manifest I have: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> However, when I run my app and press the button that needs this permission I get the following exception: Geofence usage requires ACCESS_FINE_LOCATION permission How can I fix this? I have the permission right under <manifest> I am using Android 6. This is my code: public void addGeofencesButtonHandler(View view) { if (!mGoogleApiClient.isConnected()) { Toast.makeText(this, getString(R

Geofences do not work as expected

最后都变了- 提交于 2019-12-01 13:18:56
Creating and Monitoring Geofences example app on github does not work as expected, Geofences in Google Play Services don't seem to work properly. I have read elsewhere at Stack Overflow, that Reto Meier mentioned at Google IO that the GPS will turn on only if the phone approaches the geofence to conserve battery. Seems that it does not turn on at all. Here is the situation: I have an Emulator with Google APIs (same happens with real phone). I have the above mentioned app out of the box installed and Geofence added. I have a KML file that drives me in and out of the Geofence. Gofence ENTER is

Geofences do not work as expected

给你一囗甜甜゛ 提交于 2019-12-01 09:56:46
问题 Creating and Monitoring Geofences example app on github does not work as expected, Geofences in Google Play Services don't seem to work properly. I have read elsewhere at Stack Overflow, that Reto Meier mentioned at Google IO that the GPS will turn on only if the phone approaches the geofence to conserve battery. Seems that it does not turn on at all. Here is the situation: I have an Emulator with Google APIs (same happens with real phone). I have the above mentioned app out of the box

Is there any API for calculating Geofence breach other than Android API's

蓝咒 提交于 2019-12-01 01:48:45
I would like to calculate geofence breach and driving distance calculation in the backend. This is my first time using the google API. All I find in the web is are for Android. Is there any API specific to regular calculations. You can implement it yourself, without using any frameworks, it's very easy... I presume that you want to check if you're inside a circle geofence or not. To do this, just calculate the distance between the center of the circle and your location (longitude, latitude). If the distance is smaller than your circle radius, then you're inside the geofence, otherwise you're

Add more than 20 regions to geofencing ios

老子叫甜甜 提交于 2019-11-30 08:50:23
问题 I want to add 100 of regions to geofencing.(apple limit it to 20)any one have better idea for it.please help me. currently im using significant location change.when significant location change, - (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation method i call API with current location and get the nearest region set and add into geofencing.This method works.But i heard from web significant location change

Tracking more than 100 simultaneous geofences with the new Android API

倾然丶 夕夏残阳落幕 提交于 2019-11-30 05:57:10
I have around 3500 geographical points of interest in an area of 9000 km^2, and I want my app to run in the background and notify the user whenever he or she is in proximity to any of the aforementioned points. The new Geofence API introduced during Google I/O 2013 seemed perfect for the job, especially as its optimized for battery life, but I can't seem to register more than 100 geofences before I get the status code GEOFENCE_TOO_MANY_GEOFENCES (using a modified version of the demo app). Is it possible to increase this limit? Perhaps through some setting or API? b-ryce I'd recommend

Android LocationServices.GeofencingApi example usage

北城余情 提交于 2019-11-29 23:14:58
Does anyone know of an example of using the LocationServices.GeofencingApi? All the android geofencing examples I find are using the deprecated LocationClient class. From what I can see, the LocationServices class is the one to use, but there doesn't seem to be any working examples on how to use it. The closest I've found is this post highlighting location update requests UPDATE: The closest answer I've found is this git example project - but it still uses the deprecated LocationClient to get triggered fences. L93 I just migrated my code to the new API. Here is a working example: A working

Add more than 20 regions to geofencing ios

旧巷老猫 提交于 2019-11-29 07:26:32
I want to add 100 of regions to geofencing.(apple limit it to 20)any one have better idea for it.please help me. currently im using significant location change.when significant location change, - (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation method i call API with current location and get the nearest region set and add into geofencing.This method works.But i heard from web significant location change fire depend on the cell towers.If there less cell towers then it will be problem.Other thing is when