73 questions
1
vote
1
answer
149
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 ...
1
vote
0
answers
108
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 ...
0
votes
1
answer
356
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 ...
1
vote
1
answer
200
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 ...
0
votes
1
answer
224
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....
0
votes
1
answer
538
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 ...
1
vote
0
answers
260
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 ...
0
votes
2
answers
1k
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. ...
2
votes
0
answers
102
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 ...
9
votes
2
answers
697
views
Awareness API. Get location.failure on certain phones
Awareness.SnapshotApi.getLocation(client)
.setResultCallback(new ResultCallback<LocationResult>() {
@Override
public void onResult(@NonNull LocationResult locationResult) {
...
4
votes
0
answers
231
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 ...
8
votes
2
answers
396
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 ...
2
votes
1
answer
328
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 ...
2
votes
0
answers
260
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
...
8
votes
1
answer
319
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:
...