chat-demo-android/src/main/java/com/twilio/chat/demo/FCMInstanceIDService.java
/**
     * Called if InstanceID token is updated. This may occur if the security of
     * the previous token had been compromised. This call is initiated by the
     * InstanceID provider.
     */
Called if InstanceID token is updated. This may occur if the security of
the previous token had been compromised. This call is initiated by the
InstanceID provider.
Called if InstanceID token is updated . This may occur if the security of the previous token had been compromised . This call is initiated by the InstanceID provider .
@Override
    public void onTokenRefresh()
    {
        logger.e("onTokenRefresh");
        Intent intent = new Intent(this, RegistrationIntentService.class);
        startService(intent);
    }
@ Override public void onTokenRefresh ( ) { logger . e ( "onTokenRefresh" ) ; Intent intent = new Intent ( this , RegistrationIntentService . class ) ; startService ( intent ) ; }
Called if InstanceID token is updated.
Called if InstanceID token is updated .
// Fetch updated Instance ID token and notify our app's server of any changes.