Skip to content

Commit

Permalink
Update FirebasePlugin.java
Browse files Browse the repository at this point in the history
Build Error Resolved
  • Loading branch information
hardikthakkar3 authored May 29, 2017
1 parent 3f5618f commit a5fad5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/FirebasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ private void unregister(final CallbackContext callbackContext) {
cordova.getThreadPool().execute(new Runnable() {
public void run() {
try {
FirebaseInstanceId.deleteInstanceId();
FirebaseInstanceId.getInstance().deleteInstanceId();
String currentToken = FirebaseInstanceId.getInstance().getToken();
if (currentToken != null) {
FirebasePlugin.sendToken(currentToken);
Expand Down

0 comments on commit a5fad5d

Please sign in to comment.