android-geofence

Android: How to get the list of users with in same geofence?

拈花ヽ惹草 提交于 2019-12-20 07:54:13
问题 I have 3 Geo-fence locations(circles) stored on Firebase like Geofence_location_1(lat,lng, radius). Geofence_location_2(lat,lng, radius). Geofence_location_3(lat,lng, radius). I am able to get the user's current location and store it in Firebase. Is there a way to figure out if users current location falls with in any of the saved Geo-fence locations? OR Is it possible to get the key of Geo-fence in which the user is present? OR Is there any way to show user the list of all other users

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

江枫思渺然 提交于 2019-12-19 11:39:31
问题 This question already has answers here : Android permission doesn't work even if I have declared it (13 answers) Closed 4 years ago . 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:

Android: How to make user create geofence for another tracked users?

痴心易碎 提交于 2019-12-19 04:52:25
问题 How to implement Geofence for tracking another users? I am developing an application which will track family members, and I want to implement Geofence feature which will enable user to do for ex: user A will track user B user A will determine the geofence area and when user B will enter this geofence user A will get a notification I retreived the location of user B every 10 minutes and I want to create Geofence for user B which will notify user A when user B enter the geofence area I try to

Android - Need to add more than 100 geofences

谁说我不能喝 提交于 2019-12-17 18:14:50
问题 I'm developing an application where user can set multiple locations. I get succeed to show notifications when user get Enter or Leave specific region using GeoFencing. Now, there is situation that i need to provide monitoring for all saved locations and it can be hundreds and more. I've read at the given link "You can have multiple active geofences, with a limit of 100 per device user." Is there any way add more then 100 geofences per device user ? Thanks! 回答1: Have an ArrayList with all the

Does Android Wear work with geofencing without paired handheld?

a 夏天 提交于 2019-12-13 21:44:06
问题 According to the documentation, geofencing uses cellular network and wifi signal for detecting a location, but it seems like it doesn't work without a connected companion device. Does Android Wear work with geofencing without paired handheld? 回答1: Update: Just had a quick play with this, doesn't seem to work yet when BT disconnected and wifi connected. Original reply: Not all wear devices have the hardware to support this, though the LG urbane 2 has LTE and quite a few Wear devices support

GeoFence using PendingIntent.getBroadcast() not working

六眼飞鱼酱① 提交于 2019-12-12 19:13:18
问题 I am trying get a Geofence trigger to a BroadcastReceiver and the BroadcastReceiver has the code to read the data from the intent and act on the data sent in intent. My BroadCastReceiver is GeoLocationBroadCastReceiver . I am invoking this code when my activity is opened and the app is in background. public PendingIntent getPendingIntent(Context context){ Intent i = new Intent(context, GeoLocationBroadCastReceiver.class); return PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG

Issue Moving from IntentService to JobIntentService for Android O

早过忘川 提交于 2019-12-12 08:57:17
问题 I am using Intent Service to monitor Geofence transition. For that I am using following call from a Sticky Service. LocationServices.GeofencingApi.addGeofences( mGoogleApiClient, getGeofencingRequest(), getGeofencePendingIntent() ) and the Pending Intent calls Transition service (an IntentService) like below. private PendingIntent getGeofencePendingIntent() { Intent intent = new Intent(this, GeofenceTransitionsIntentService.class); // We use FLAG_UPDATE_CURRENT so that we get the //same

Doze mode sleeps Google's Geofence sample application

随声附和 提交于 2019-12-12 06:45:20
问题 I have an android application that uses Geofence and I'm having a hard time overcoming Doze mode. My manifest has the WAKE_LOCK permission and seven setNotificationResponsiveness to 0 for each region. I even changed PendingIntent to BroadcastReceiver but the app literally sleeps or is dead after a while with the deleted smartphone screen. I've already tried using LocationRequest LocationRequest.setFastestInterval(1000); LocationRequest.setInterval(2000); Even so, I did not succeed. Has anyone

Google Play Services location API usage limits

跟風遠走 提交于 2019-12-12 05:01:11
问题 If you're using the newer Android Location API features like Geofences or ActivityUpdates via Google Play Services, are you subject to any usage limits? I know there's limits like, e.g. registering 100 Geofences at a time, but beyond that any usage limits I can find, in terms of requests allowed per day, etc, seem to refer to the Google Maps API, as opposed to the Location API. 回答1: There is no limit on usage of Location API . Limit is applied on registering Geofences only. 回答2: Check this

Get the direction Android app user is headed on entering a geofence

给你一囗甜甜゛ 提交于 2019-12-12 01:22:04
问题 I'm playing around with geofences - what I'd like to do is when a geofence is fired, figure out which direction they're going. For example - let's ay I want to setup a geofence around a Culvers. While driving down the interstate heading north, when I enter the geofence I want to pop-up a notification that says "Culvers, take next exit on the right and make a right heading East". But if they're driving South on the interstate, it should pop-up and say "Culvers, take next exit on the right and