-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs][sensors] Add note regarding running watchStepCount
in background
#28798
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm 👍
Left a small suggestion.
37f0c41
to
1a96960
Compare
Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines. I've found some issues in your pull request that should be addressed (click on them for more details) 👇
|
@@ -28,6 +28,10 @@ export type PedometerUpdateCallback = (result: PedometerResult) => void; | |||
* provided with a single argument that is [`PedometerResult`](#pedometerresult). | |||
* @return Returns a [`Subscription`](#subscription) that enables you to call | |||
* `remove()` when you would like to unsubscribe the listener. | |||
* | |||
* > Pedometer updates will not be delivered while the app is in the background. As an alternative, on Android, use another solution based on | |||
* > [`Health Connect API`](https://developers.google.com/fit) or [`Google Fit API`](https://developer.android.com/health-and-fitness/guides/health-connect). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@behenate The links are switched up - it should be the other way around. Also, it might be worth not recommending Google Fit API because as of right now, it is not even possible to sign up for the API (it is deprecated)
Why
We should make the limitations of the Pedometer API clearer in the docs
ENG-11584