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.

Google's Awareness API unifies 7 location and context signals in a single API, enabling you to create powerful context-based features with minimal impact on system resources. Combine optimally processed context signals in new ways that were not previously possible, while letting the API manage system resources so your app doesn't have to.

76 questions
2
votes
5 answers

Receiving error when trying to connect with Google Awareness services

I'm trying to work with google's awareness api, and register instance of GoogleApiClient to awareness api, but i'm receiving an error which i can't find anywhere. I've followed the manual, and enabled awareness services in the api…
Dus
  • 4,052
  • 5
  • 30
  • 49
1
vote
1 answer

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 AndroidManifest.xml because i want to trigger the event…
1
vote
0 answers

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 kept the phone "Still" for a while to make sure that their is no delay…
imim
  • 53
  • 1
  • 8
1
vote
1 answer

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 alternative to it and I found that I might use "Radar"…
Spongi
  • 501
  • 3
  • 10
  • 19
1
vote
0 answers

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 and IntentService but this is not worked too. I was…
1
vote
1 answer

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 not receiving any status. I've a static…
Rajesh
  • 399
  • 6
  • 15
1
vote
3 answers

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 blogs and also SensorManager android developer but…
1
vote
1 answer

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 on the screen before crashing and I am able to…
user1959417
  • 224
  • 2
  • 8
1
vote
0 answers

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 checkPermission) or explicitly handle a potential…
1
vote
0 answers

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 catch any LocationFence.in ,…
1
vote
0 answers

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.starting and DetectedActivityFence.during are not…
dgngulcan
  • 3,101
  • 1
  • 24
  • 26
1
vote
1 answer

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 last time I encountered that error, it was due to…
Pavlos
  • 2,183
  • 2
  • 20
  • 27
1
vote
0 answers

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:55.215 495-30247/? W/ActivityManager: Unable to…
Afzal N
  • 2,546
  • 1
  • 26
  • 24
1
vote
2 answers

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. Is it possible and how do you implement…
Chilibiff
  • 119
  • 1
  • 13
1
vote
1 answer

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 registered a 'stopping' callback, but then after…