Created
October 5, 2016 10:49
-
-
Save SeongUgJung/c523b0d279cdc559ce19bb90c0262671 to your computer and use it in GitHub Desktop.
fcm token is refreshed forcily
This file contains hidden or 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
Completable.fromCallable(() -> { | |
try { | |
FirebaseInstanceId.getInstance().deleteInstanceId(); | |
PushTokenRepository.getInstance().deleteGcmToken(); | |
FirebaseInstanceId.getInstance().getToken(); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
return Completable.complete(); | |
}).subscribeOn(Schedulers.newThread()) | |
.subscribe(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment