You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following removes the signed-in account and clears cached tokens from not only the app but also from the device that is in shared device mode:
187
+
To receive the account change broadcast, you'll need to register a broadcast receiver. It’s recommended to register your broadcast receiver via the Context. For more information about Context, [Context-registered receivers](https://developer.android.com/guide/components/broadcasts#context-registered-receivers)
To receive the account change broadcast, you will need to register a broadcast receiver.It’s recommended to register your broadcast receiver via the Context. For more information about context, see [Context-registered receivers](https://developer.android.com/guide/components/broadcasts#context-registered-receivers).
211
-
212
-
When an account change broadcast is received, immediately [get the signed in user and determine if a user has changed on the device](tutorial-v2-shared-device-mode.md#get-the-signed-in-user-and-determine-if-a-user-has-changed-on-the-device).If a change is detected, initiate data cleanup for previously signed-in account. It is recommended to properly stop any operations and do data cleanup.
189
+
When an account change broadcast is received, immediately get the signed in user and determine if a user has changed on the device. If a change is detected, initiate data cleanup for previously signed-in account. It is recommended to properly stop any operations and do data cleanup.
213
190
214
-
The following code snippet shows how you could register a broadcast receiver.
191
+
The following code snippet shows how you could register a broadcast receiver.
0 commit comments