Skip to content

Commit

Permalink
when token updated
Browse files Browse the repository at this point in the history
  • Loading branch information
susemi99 committed Jan 26, 2016
1 parent f1c7975 commit adc61ca
Showing 1 changed file with 24 additions and 0 deletions.
@@ -0,0 +1,24 @@
package kr.susemi99.gcm.services;

import android.content.Intent;

import com.google.android.gms.iid.InstanceIDListenerService;

/**
* Created by susemi99 on 2016. 1. 26..
*/
public class InstanceIDUpdateListenerService extends InstanceIDListenerService
{
/**
* 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()
{
super.onTokenRefresh();
Intent intent = new Intent(this, RegistrationIntentService.class);
startService(intent);
}
}

0 comments on commit adc61ca

Please sign in to comment.