onTokenRefresh property

Stream<void> onTokenRefresh

You should listen for token refreshes so your web app knows when FCM has invalidated your existing token and you need to call getToken to get a new token.

Implementation

Stream<void> get onTokenRefresh => _onTokenRefresh.stream;