Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
susemi99
committed
Jan 26, 2016
1 parent
f1c7975
commit adc61ca
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app/src/main/java/kr/susemi99/gcm/services/InstanceIDUpdateListenerService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |