Skip to content

Commit

Permalink
completed for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikinfodesk committed May 26, 2017
1 parent 72e5987 commit 3f5618f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/android/FirebasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,11 @@ private void unregister(final CallbackContext callbackContext) {
cordova.getThreadPool().execute(new Runnable() {
public void run() {
try {
//TODO
FirebaseInstanceId.deleteInstanceId();
String currentToken = FirebaseInstanceId.getInstance().getToken();
if (currentToken != null) {
FirebasePlugin.sendToken(currentToken);
}
callbackContext.success();
} catch (Exception e) {
callbackContext.error(e.getMessage());
Expand Down

0 comments on commit 3f5618f

Please sign in to comment.