I have been following this this guide.
However I always end up with the initialisation status of COMPLETED_WITH_DEGRADED_FUNCTIONALITY
:
InitializationStatus{status=COMPLETED_WITH_DEGRADED_FUNCTIONALITY, unrecoverableException=null, locationsError=true, playServicesStatus=-1, playServicesMessage=null, encryptionChanged=false, storageError=false, proximityError=false, messagingPermissionError=false, sslProviderEnablementError=false, initializedComponents=[BehaviorManager, LifecycleManager, RequestManager, ControlChannel, AlarmScheduler, LocationManager, ProximityManager, AnalyticsManager, InboxMessageManager, NotificationManager, RegionMessageManager, PushMessageManager, RegistrationManager]}
When I run the following code from the learning app:
if (status.locationsError()) {
final GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();
Log.i(TAG, String.format(Locale.ENGLISH, "Google Play Services Availability: %s", googleApiAvailability.getErrorString(status.playServicesStatus())));
if (googleApiAvailability.isUserResolvableError(status.playServicesStatus())) {
googleApiAvailability.showErrorNotification(LearningAppApplication.this, status.playServicesStatus());
}
}
I get the following errors:
I/MainActivity: Google Play Services Availability: UNKNOWN
However GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this)
is true
...
Do I need to be implementing a RegionMessageManager.GeofenceMessageResponseListener
? What am I missing?
In the SDK state I get:
...
"LocationManager": {
"geofencingEnabled": true,
"proximityEnabled": false,
"gmsLocationDependencyAvailable": false
},
"ProximityManager": {
"proximityEnabled": false
},
...