Reputation: 743
A user of Soccer Referee Pro watchface reported an error I haven't seen before: Error 19 when the watch tries to connect to Google Fit. According to the docs, I think this is SERVICE_MISSING_PERMISSION
for some aspect of Google Play Services.
Here are the APIs I am connecting to:
.addApi(Fitness.RECORDING_API) //records low power information
.addApiIfAvailable(Fitness.HISTORY_API)
.addApiIfAvailable(Fitness.SENSORS_API)
.addApi(Fitness.SESSIONS_API)
According to the docs, startResolutionForResult
is not available from a Watchface service.
What is the problem, and how do I fix it?
Upvotes: 1
Views: 299
Reputation: 743
The user has confirmed that re-enabling Sensors permission for Google Play Services fixed the problem. I don't really understand why Sensors permission is included in Google Play Services permissions (and this model may have changed in 10.x of Google Play Services), but there you go. i should indeed be checking for this error code and using startResolutionForResult via a call out to an app.
Upvotes: 1