Questions tagged [google-awareness]

A unified sensing platform enabling applications to be aware of multiple aspects of a users context, while managing battery and memory health.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Android Awareness API: Error 15 - Timeout when using Snapshot API to get User Activity

I am using the snapshot API in a master thesis project to check if next user actions could be predicted based on meta-data like the user's activity. However, when requesting user activity from the ...
Planetcat's user avatar
0 votes
0 answers
46 views

Timeout error occurs when calling detectedActivity of awareness API on os13

com.google.android.gms:play-services-awareness:19.0.1 Android OS 10,13 Timeout error in os13 when calling detectedActivity() of awareness API. There is no problem on os9, but it is happening on os13. ...
byeongyeol's user avatar
1 vote
1 answer
95 views

Getting fenceKey null in Awareness Api

Hi i´m working in app that have to notificate when the user starts driving, i used Neura Api but it needs a fixed notification, so i´m trying it with Awareness Api. I need the broadcast in the ...
David Angulo's user avatar
1 vote
0 answers
82 views

Google Awareness API Fences

Please help me understand why my awareness fence that I have setup does not return a TRUE state for being "Still". I am running the app on my phone and I am "Still", and I have ...
imim's user avatar
  • 53
0 votes
1 answer
279 views

Google Awareness API cannot register location fence (Fence API) Kotlin

Ive been trying to use Google Awareness API (Fence API) and I can register every other kind of fence - headphones, walking- and my broadcast reciever that handles callbacks from fence state changes is ...
user14111584's user avatar
1 vote
1 answer
169 views

Google Awareness Snapshot API deprecated alternatives

Notice: The Places and Weather contextual signals (exposed via the getPlaces(), and getWeather() methods), are deprecated as of August 7, 2019. I have app using this 2 methods, I searched for ...
Spongi's user avatar
  • 511
0 votes
1 answer
199 views

Awareness API is failing with status code 12

We are facing the below issue with Google Awareness API java.lang.SecurityException: Invalid API Key for package = com.mypackage. Status code received = 12 at android.os.Parcel....
Bhargav Bandla's user avatar
0 votes
1 answer
355 views

How accurate is Android's Activity/Transition recognition for trains?

I'm developing an application that should be able to detect when a user has got on a mode of public transport, such as a train or bus. I've seen the Activity and Transition API made by Google, but ...
Matt's user avatar
  • 88
1 vote
0 answers
215 views

Geofence is not triggering after power saving mode

I am using geofence in my app and it is working fine without power saving mode. After power saving mode geofence is not triggered. I added again but it is not worked. I was trying BroadcastReceiver ...
Mustafa Kuloğlu's user avatar
0 votes
2 answers
779 views

Android - Get notified when near BLE device

I need my app to get notified when it is in range of a specific BLE device. Once in range, I want to connect to the device and send data to it. Approach 1: Periodic BLE scans at some interval (i.e. ...
Ivan Stalev's user avatar
2 votes
0 answers
89 views

What is the meaning of "status code = 7508" on Google Awareness API?

I implemented Google Awareness API on my application. All the features of Awareness api except getPlace are working. But nearby places features doesn't work. I get the status code 7508. There is no ...
Belfu Ogretir's user avatar
9 votes
2 answers
647 views

Awareness API. Get location.failure on certain phones

Awareness.SnapshotApi.getLocation(client) .setResultCallback(new ResultCallback<LocationResult>() { @Override public void onResult(@NonNull LocationResult locationResult) { ...
P t's user avatar
  • 91
4 votes
0 answers
179 views

Google's time fence using Awareness API is not reliable

I am building an SDK that is using Google Awareness API. I have some actions that need to be executed based on different schedules for each day, also when the app is backgrounded - a perfect match ...
Ofir A.'s user avatar
  • 3,122
8 votes
2 answers
329 views

BroadcastReceiver stop working on Xiaomi after couple of hours

I'm using Awareness API for my project and receiving actions via BroadcastReceiver. This is the question with my code: link. The problem is that everything works fine in all android version except in ...
Dim's user avatar
  • 4,597
2 votes
1 answer
277 views

Google Awareness API Places with com.google.android.gms.common.api.ApiException: 7508

I unsuccessfully try to solve my Google Awareness Api Exception Problem for days now. I do have implemented a Awareness Snapshot Client to resolve the current POI nearby for my context collection ...
free100's user avatar
  • 21
2 votes
0 answers
233 views

Does using the Fence API in the Background require a Foreground Service in Android P

With Android P, apps running in the background will no longer receive sensor updates. One way around this will be using a Foreground Service. According to this Limited access to sensors in background ...
Syzygy's user avatar
  • 588
8 votes
1 answer
292 views

Awareness API Query for Fence State

I am trying to get fence state with the Awareness API. Here is the documentation about this. But... When using: Awareness.FenceApi.queryFences I can see its deprecated, and instead need to use: ...
Dim's user avatar
  • 4,597
-1 votes
1 answer
100 views

ActivityTransition new API

Google released new api to identify ActivityTransition(https://developers.google.com/android/reference/com/google/android/gms/location/ActivityTransition). Is there any example how to use?
user9187's user avatar
  • 223
0 votes
1 answer
585 views

Best way to use TriggerEventListener in the background?

I'm looking to make an application that runs in the background, logging location data without the user actually having to have the application in the foreground but at the same time doesn't use too ...
TobRod's user avatar
  • 61
0 votes
0 answers
100 views

Snapshot API - ResultCallBack not triggered

I am using the Google Snapshot API in Android. I use this code to get the user's activity and store it to Firebase. //Get user's current activity private void myCurrentActivity(final String ...
Michalis G.'s user avatar
1 vote
1 answer
174 views

Receive Fence callbacks when app is killed

I'm using Fence Api in Google Awareness Api to create a geofence and trigger it when the user enters or exists the location. But this is working fine if the app is running. If the app is killed, I'm ...
Rajesh's user avatar
  • 399
1 vote
3 answers
2k views

Detecting the device presence in a Pocket

My application needs to know whether the phone is in the pocket or in hand based on which few parameters are set specific to individual than to move on to perform next tasks. I have read various ...
Shree's user avatar
  • 354
1 vote
1 answer
462 views

Accessing Google Awareness API for Android Crashes App

I am attempting to use the Android Awareness API to access weather data. My app crashes before showing the data. I believe the problem is inside the onComplete method because the UI does briefly flash ...
user1959417's user avatar
3 votes
1 answer
1k views

Awareness API: com.google.android.gms.common.api.ApiException: 15

In my onCreate I call the following function to detect the weather. private void detectWeather() { if( !checkLocationPermission() ) { return; } Awareness....
Bram's user avatar
  • 2,515
0 votes
0 answers
28 views

Set the value of textview out of Awareness.SnapshotApi.getWeather

I want to set the value of my textView out of the block Awareness.SnapshotApi.getWeather,but it's not working. Everytime I set the value at the marked area program crashes. I also want to know, how ...
THE2ndMOUSE's user avatar
1 vote
0 answers
101 views

Call requires permission which may be rejected by user: Awareness.SnapshotApi.getWeather()

Trying to get weather update from googeleAwareness api.Error saying:Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with ...
THE2ndMOUSE's user avatar
4 votes
0 answers
321 views

Android Things - Unable to get Weather and Location

I'm trying to use the Google Awareness API in my IoT Project, however, when calling the Weather and Location API I'm receiving TIMEOUT errors. Gradle: compile 'com.google.android.gms:play-services-...
DaniloBertelli's user avatar
16 votes
3 answers
4k views

Awareness API & Android O using BroadcastReceiver

I have an Android app which uses the Awareness API to setup a fence when a headset is plugged in. I have implemented the AwarenessFence using code much like in the examples at: https://developers....
Michael Franz's user avatar
2 votes
1 answer
466 views

Android Things - can't use Awareness API

I have the same code with a lower version (9.4.0) working on the phone but for some reason it won't work on RPi3? My build.gradle compile 'com.google.android.gms:play-services:10.0.0' provided 'com....
JC23's user avatar
  • 1,278
4 votes
5 answers
3k views

Google Awareness API, Invalid API key, Crash

This is my first attempt at creating an android application. In trying to use the Awareness API provided by Google I receive a SecurityException in logcat, and the error: "Invalid API Key for package ...
Alexander's user avatar
  • 420
0 votes
1 answer
362 views

Google Awareness Location Fence is not working

I tried using Google Awareness API for Location Fence: https://medium.com/exploring-android/exploring-the-new-google-awareness-api-bf45f8060bba But it's not working all times, is there any special ...
AVEbrahimi's user avatar
  • 18.3k
3 votes
0 answers
383 views

android activity recognition with awareness API inconsistent

I have driving detection setup with the Awareness API for with fences for "starting" and "stopping". Problem The app detects that I'm driving about 50% of the time, but often only if/when I turn the ...
Neil MacMillan's user avatar
2 votes
2 answers
610 views

Android Awareness API multiple fence registration

I am trying to register multiple location fences using Androids awareness API over multiple sessions. But every time I register a new location fence, it seems to drop my old location fences and not ...
AmeyaB's user avatar
  • 999
1 vote
0 answers
632 views

Awareness Fence API:- LocationFence not working, Fence registered successfully but Broadcast Receiver failed to receive any thing

I am trying to register Fence LocationFence API for tracking the user enters, exit or IN in a particular location, The Fence was register successfully but the registered Broadcast receiver failed to ...
Harsh Gaba's user avatar
2 votes
0 answers
284 views

Android Awareness Snapshot API from IntentService got error 7503

I got an IntentService that's work is to update the Weather data from Google Awareness API, and pass it back to the Wear companion. I got the API key, got location rights, and also everything works ...
Totoo's user avatar
  • 139
2 votes
2 answers
910 views

Activity Fence not working in Awareness API

I tried implementing the Activity Fence using the Google Awareness API. But changes in the user's activity are not getting detected. The headphone fence works as expected though. ActivityFenceActivity ...
Subhrajyoti Sen's user avatar
1 vote
0 answers
373 views

Awareness Fence API

I am trying to register Fence API for cycling events for the tracker I am working on, for auto-pause/resume feature. The broadcast catches DetectedActivityFence.stopping however DetectedActivityFence....
dgngulcan's user avatar
  • 3,111
1 vote
1 answer
381 views

ACL_ACCESS_DENIED Awareness API - Android

I am trying to integrate Awareness API on a new project and I am stuck with an error saying: ACL_ACCESS_DENIED Status Code: 7503. I have integrated Awareness API on other projects as well, but the ...
Pavlos's user avatar
  • 2,183
1 vote
0 answers
487 views

Awareness API not available in Android Wear 2.0

I'm trying to use the Awareness Fence API on Android Wear 2.0 but unable to do so. When I setup the GoogleApiClient with Awareness.API and call connect(), I get these errors in logcat. 02-17 04:17:...
Afzal N's user avatar
  • 2,575
1 vote
2 answers
1k views

Google Awareness API on iOS

I want to know if anyone used the Google Awareness API on an iOS device. I know it's possible to implement on Android but I need to work on iOS as well, I haven't find any documentation on it so far. ...
Chilibiff's user avatar
  • 119
2 votes
1 answer
331 views

Getting Beacon Fence Using Awareness API it's take too much time and not accurate

This is my code for getting BeaconFence.It's take too much time and not provide accurate information i fetch two fence lost and found //BeaconFenceActivity.java import android.Manifest; import ...
Abhishek Hirapara's user avatar
0 votes
1 answer
278 views

Getting location with the Google Play Services Location API vs getting it with the Awareness API

I've read many good comparisons between Android's framework location API and the Google Play Services Location API. However, is there any benefit in using (exclusively to obtain location) the Google ...
diazdeteran's user avatar
  • 1,154
1 vote
1 answer
530 views

Awareness API delays activity callbacks significantly

I've created a class and a BroadcastReceiver to get callbacks from the awareness api for when walking or running ends. I wasn't getting timely callbacks and at first thought it was because I had ...
user6877096's user avatar
1 vote
1 answer
400 views

How to check if a fence key is registered for Awareness API?

I have 2 questions about Googles Awareness Fences API: Do we have a method to check if a fence with a given fence key is registered? What will happen if I accidentally register 2 fences with the ...
DrkStr's user avatar
  • 1,812
1 vote
0 answers
41 views

Saving AwarenessFence into database

In my Android app I use Fence API from Awareness Fence, and all works as expected. However, I need to reset the fence when the device reboots. For this purpose I have built a BroadcastReceiver on ...
Ernestina Juan's user avatar
3 votes
1 answer
338 views

TimeFence.inInterval in Awareness API not working

I am using this to set up a time fence: ArrayList<AwarenessFence> awarenessFences = new ArrayList<AwarenessFence(); awarenessFences.add(TimeFence.inInterval(timeInMillis, timeInMillis+5L)); ...
div's user avatar
  • 1,485
1 vote
1 answer
214 views

Updating location fences in Android takes too long with large amount of fences

I am using the awareness API on Android to receive a broadcast when the user enters a specific area. When I developed this functionality by the first time, I had about 500 locations and it worked fine....
Nicolás Arias's user avatar
0 votes
1 answer
65 views

Combine Weather state with User Activity state

I have a use-case wherein a notification will be issued when the weather is sunny, user activity is walking and there's also a particular location. How should i go about combining these three ...
div's user avatar
  • 1,485
1 vote
2 answers
292 views

Remove or unregister the fence in broadcast receiver

I am using the Awareness API and have created a fence like this: AwarenessFence activityFence = DetectedActivityFence.during(DetectedActivityFence.STILL); AwarenessFence headphoneFence = ...
div's user avatar
  • 1,485
1 vote
2 answers
3k views

How to get weather info with Google Awareness API?

I have an activity with one button that I want to use to give me some weather info inside the same activity (that I display with some textView under the button...). I have something like this: ...
Fobi's user avatar
  • 435