google-awareness

Google Awareness API SecurityException is thrown

痴心易碎 提交于 2019-12-03 00:29:06
I'm using DetectedActivityFence from Google Awareness API . It's working fine on my own devices, but I received a several crashes in Crashlytics about SecurityException . Fatal Exception: java.lang.SecurityException: Invalid API Key for package = [package_name] .Status code received = -1 at android.os.Parcel.readException(Parcel.java:1540) at android.os.Parcel.readException(Parcel.java:1493) at com.google.android.gms.common.internal.zzu$zza$zza.zza(Unknown Source) at com.google.android.gms.common.internal.zzd.zzqz(Unknown Source) at com.google.android.gms.internal.zzpw$zzc.zzapl(Unknown Source

Google Awareness API v9.6 is missing

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:59:35
I'm interested in new maps styling feature, which is added in 9.6 Google Play Services release, but also I'm using Awareness API. In my build.gradle I have compile 'com.google.android.gms:play-services-maps:9.6.1' compile 'com.google.android.gms:play-services-contextmanager:9.6.1' compile 'com.google.android.gms:play-services-location:9.6.1' and some other play-services/firebase modules. Previously with v9.4 that worked, but now I'm getting Failed to resolve: com.google.android.gms:play-services-contextmanager:9.6.1 BTW, all other libs with 9.6 version resolved correctly. Also I tried to use 9

Google Awareness API v9.6 is missing

岁酱吖の 提交于 2019-12-01 05:42:03
问题 I'm interested in new maps styling feature, which is added in 9.6 Google Play Services release, but also I'm using Awareness API. In my build.gradle I have compile 'com.google.android.gms:play-services-maps:9.6.1' compile 'com.google.android.gms:play-services-contextmanager:9.6.1' compile 'com.google.android.gms:play-services-location:9.6.1' and some other play-services/firebase modules. Previously with v9.4 that worked, but now I'm getting Failed to resolve: com.google.android.gms:play

Best way to use TriggerEventListener in the background?

天涯浪子 提交于 2019-11-29 17:35:48
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 much battery. I originally thought of setting a BroadcastReceiver for BOOT_COMPLETED and run a service which uses a Significant Motion sensor to log location data whenever the it fired off, but ever since Oreo, there are alot of limitations on background services. What is the best way to do this? You can use JobService it's efficient in terms of battery and modern way to perform the task in the

Best way to use TriggerEventListener in the background?

匆匆过客 提交于 2019-11-28 12:53:21
问题 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 much battery. I originally thought of setting a BroadcastReceiver for BOOT_COMPLETED and run a service which uses a Significant Motion sensor to log location data whenever the it fired off, but ever since Oreo, there are alot of limitations on background services. What is the best way to do this?