Under what circumstances will an app deletes Fireb

2019-06-12 14:15发布

FirebaseInstanceIdService.class clearly states that onTokenRefresh() will be called when:

  • App deletes Instance ID
  • App is restored on a new device
  • User uninstalls/reinstall the app
  • User clears app data

When and under what circumstances will an app deletes an instance ID? Is there a possibility of it happening while an app is still active (ongoing activity or service)?

1条回答
不美不萌又怎样
2楼-- · 2019-06-12 14:37

The app deletes the Instance ID when you call FirebaseInstanceId.deleteInstanceId() in app:

Resets Instance ID and revokes all tokens.

And yes, you can call this method while your app is active.

查看更多
登录 后发表回答