geofencing

Alert when two users/friends are near to each other - Android Proximity

北城余情 提交于 2019-12-07 16:30:51
问题 I tried searching but i couldn't find anything. My Question is " How can i alert 2 or more users if they are nearby each other? " in android using Geo-fencing or something else. Say, If a UserA is in football ground and UserB walking nearby that football ground. Then UserA and UserB automatically gets notification that UserA/UserB are somewhere nearby. 回答1: Finally after spending a couple of hours thinking, I thought a better way to do this: Setup a database (MySQL,SQL etc) in your server

Geofence iOS8 : Require Background Mode for iOS Geofencing [closed]

我与影子孤独终老i 提交于 2019-12-07 06:27:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have used geofencing in my app. Geofence feature discription: App has two type of functionality while entering or exiting from the region: Reset fence: If user will enter in the region and that region has the functionality of reset fence then app will call one web-service and get the new fence list. This

Why are my local notifications not having sound on by default in iOS 7?

大兔子大兔子 提交于 2019-12-07 03:22:45
问题 My app uses geofencing and sends a notification. By default, sounds are off in Settings - Notifications for the app. iOS 7 to be precise. Does anyone know how to fix this? Here is the code responsible for this: UILocalNotification *localNotif = [[UILocalNotification alloc] init]; localNotif.fireDate = [NSDate dateWithTimeInterval:5 sinceDate:[NSDate date]]; localNotif.timeZone = [NSTimeZone defaultTimeZone]; localNotif.alertBody = [NSString stringWithFormat:@"You are near %@. Don't forget to

Android max limit for geofences?

試著忘記壹切 提交于 2019-12-06 19:54:54
问题 I'm starting with the geo fencing API of google play services. I think I understood the general concept but I couldn't find out if there's a limit for geofences. I give my list of geofences to the the location client and he handles the rest. But how many geofences can I pass to the location client? As many as I want? 回答1: You get 100 geofences per app per device You can have multiple active geofences, with a limit of 100 per device user. For each geofence, you can ask Location Services to

iOS Region Monitoring not working

白昼怎懂夜的黑 提交于 2019-12-06 14:21:26
I have been doing some iOS development for a couple of months and recently I am developing a bus app. I am currently mimicking the bus' movements and set up multiple annotations on the bus stops. For test purposes, I have setup just one bus stop and am trying to monitor when the bus has entered this region and exited as well. Strangely, my didStartMonitoringForRegion method is called perfectly but neither the didEnterRegion nor didExitRegion methods are called. Every time I run the program, the bus pretty much passes the stop without prompting me so. Could someone explain to me why this is

How to have a working Geofence even if the app is not running? [duplicate]

天涯浪子 提交于 2019-12-06 14:10:41
This question already has answers here : Will iOS region monitoring call didEnterRegion on my app if my app is in a terminated state? (2 answers) Closed 5 years ago . I'm creating a location aware application. I was able to create geofences already, when I test it in my iPhone, I noticed that the calllback methods -didEnterRegion and -didExitRegion are being called when the application is running in foreground and background. But when I killed the application (meaning the application state is "not running") the said method call backs are not being called. So, what am I missing here? Is there

Geofence events not always called

与世无争的帅哥 提交于 2019-12-06 11:53:36
问题 This is how I add my geofences: public void setGeofenceRequest(Location location) { if (geofences == null) { geofences = new ArrayList<Geofence>(); } geofences.add(new Geofence.Builder() .setRequestId("3") .setTransitionTypes(Geofence.GEOFENCE_TRANSITION_EXIT) .setCircularRegion( location.getLatitude(), location.getLongitude(), PSLocationService.getInstance(context).kPSGeofencingDistanceMedium) .setExpirationDuration(Geofence.NEVER_EXPIRE) .build()); Intent intent = new Intent(context,

Android Google Geofencing transition jumps even device is not moving

a 夏天 提交于 2019-12-06 11:26:05
问题 I have developed a Geofencing App, which is working mostly proper. But I have also users saying me, that the app is reporting repeatable entering and exiting of the zone even the device is not moving! The app uses the latest Google Geofencing API with the transition types GEOFENCE_TRANSITION_ENTER and GEOFENCE_TRANSITION_EXIT with expiration NEVER_EXPIRE and ACCESS_FINE_LOCATION on. The users configured also a large radius with 2000 meters with no success. The locations are set to high

Swift: Geofencing / geolocations near user location

安稳与你 提交于 2019-12-06 07:24:08
问题 Problem: I'm trying to make it so that it uses the user's location all the time and constantly checks to see if it is within 5 miles of the CLLocationCoordinate2D points I have set. If so, it sends a alert if the app is open or a notification if the app is closed. Useful Information: In my project I have 4 swift files: Locations.swift holds the CLLocationCoordinate2D points. Utilities.swift holds a simple alert. UserLocation.swift retrieves and updates the user's location

Geofence - problem in triggering 'GEOFENCE_NOT_AVAILABLE'

▼魔方 西西 提交于 2019-12-06 05:05:32
I do app with geofencing use and since I started to work with it I get to broadcastReceiver the transitions and when I turned off the GPS location I got an alert with code GEOFENCE_NOT_AVAILABLE and I started a service to reregister the geofences when I will turn on the GPS. Now I took a few days break and suddenly my broadcastReceiver doesn't get alerts when I turn off the GPS. I don't understand why? *when I enter/exit from location (like I defined in the geofences init) I trigger the alerts, the problem is just at the triggering of the GEOFENCE_NOT_AVAILABLE alert. I will glad if anyone can