Questions tagged [geofencing]

A geo-fence is a virtual perimeter for a real-world geographic area. Geo-fencing is a means of notification when a location-aware device crosses this virtual perimeter.

780 questions
6
votes
2 answers

Do background geofences really work on Android 8+?

I have a geofencing app that I am trying to port to get working on Android 8+. I've read the tutorial on the subject, and switched to using compile 'com.google.android.gms:play-services-location:16.0.0'. The geofence enter events never trigger when…
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
6
votes
1 answer

How to do geofencing when app is unresponsive

The new Geofencing API from Google is not triggering any of the events when the app is dead. I tried using PendingIntent.getBroadcast() and PendingIntent.getService() but only being able to get the transition events when the app is opened. I…
6
votes
0 answers

AppStore GEO restrict app to specific USA states

I want to publish an iOS application which should be available in specific USA states only. What I have found till now is how to specify territory or country on iTunesConnect, but I didn't find how to select some states to be available in them only.…
Amani Elsaed
  • 1,558
  • 2
  • 21
  • 36
6
votes
1 answer

Location Manager didExitRegion not being called

I've set the delegate, created a region and i've read all the documentation. Every time the user's location changes and is outside of the specified region, locationManager(manager: CLLocationManager, didExitRegion region: CLRegion) isn't being…
Mihado
  • 1,487
  • 3
  • 17
  • 30
6
votes
3 answers

Geofence not triggering

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…
Skizo-ozᴉʞS ツ
  • 19,464
  • 18
  • 81
  • 148
6
votes
1 answer

Android geofencing app crashing on startup

I am trying to make a new geofencing app that have a single button (Toast message "inside" or "outside"), but the app is crashing on startup. Here is the code: MainActivity.java package com.example.geofencing; import java.util.ArrayList; import…
o_b7
  • 1,357
  • 2
  • 10
  • 7
6
votes
1 answer

Android Geofencing with Google Play Services 6.5.87

I have no problem with Google Play Services 6.1.71 (because everything works well) but not the same thing with newer version (6.5.87). I already know LocationClient class is deprecated in 6.5.87 Google Play Services class and I have little problem…
6
votes
1 answer

Geofence iOS8 : Require Background Mode for iOS Geofencing

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…
Nikh1414
  • 1,238
  • 2
  • 19
  • 35
6
votes
2 answers

Can you stop regions from persisting between launches with CLLocationManager?

Is there a way to prevent CLLocationManager from persisting monitored regions between launches? Every time the app is launched I need to add a new set of monitored regions and the old ones are no longer useful. Is there a way to either prevent them…
charleyh
  • 2,033
  • 2
  • 20
  • 32
6
votes
3 answers

Geofences (Android sample app) java.lang.ClassNotFoundException MainActivity

I have an ASUS Eee Tab (Transformer Prime TF201 Android v4.1.1). I was reading the API on Geofencing and downloaded the sample app here below on to my device => http://developer.android.com/training/location/geofencing.html. But it terminates when i…
6
votes
1 answer

Cordova/PhoneGap HTML5 GeoFence

I am looking to add some Geofencing to my Cordova/PhoneGap 3.0 app for Android. Does anyone have any experience using any of the plugins out there? Or if you could suggest the best method of going about calculating geofences inside of my app in an…
Willy
  • 213
  • 4
  • 10
6
votes
2 answers

iOS 7 Region Monitoring Doesn't Reliably Fire

I have setup an app that only has region monitoring and nothing else. I am testing by running in front mode (as opposed to background mode). It is running on an iphone 5 with ios 7.0.4. It has background app refresh and location service and location…
Paul Jianer Shi
  • 381
  • 1
  • 8
6
votes
2 answers

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

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 =…
Anthony Glyadchenko
  • 3,572
  • 7
  • 48
  • 66
6
votes
3 answers

iOS - Geofencing with WiFi turned off

I have code that creates a geofence on my iPhone that will trigger some code to be executed when didExitRegion gets called. However, I have found that when I have WiFi switched off that didExitRegion never gets triggered. Is WiFi required for…
Brian Boyle
  • 2,849
  • 5
  • 27
  • 35
6
votes
1 answer

Region based local notification

Im currently working with the "Regions" Sample code: https://developer.apple.com/library/ios/#samplecode/Regions/Introduction/Intro.h tml#//apple_ref/doc/uid/DTS40010726-Intro-DontLinkElementID_2 I'd like to take it a step further and generate, or…
Dan_R
  • 191
  • 1
  • 3
  • 14