diff --git a/src/android/com/gae/scaffolder/plugin/FCMPlugin.java b/src/android/com/gae/scaffolder/plugin/FCMPlugin.java index 955830cb4..08e335d36 100644 --- a/src/android/com/gae/scaffolder/plugin/FCMPlugin.java +++ b/src/android/com/gae/scaffolder/plugin/FCMPlugin.java @@ -179,7 +179,7 @@ public void getInitialPushPayload(CallbackContext callback) { public void getToken(final TokenListeners callback) { try { - FirebaseInstanceId.getInstance().getId().addOnCompleteListener(new OnCompleteListener() { + FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(Task task) { if (!task.isSuccessful()) { @@ -201,7 +201,7 @@ public void onComplete(Task task) { } }); - FirebaseInstanceId.getInstance().getId().addOnFailureListener(new OnFailureListener() { + FirebaseInstanceId.getInstance().getInstanceId().addOnFailureListener(new OnFailureListener() { @Override public void onFailure(final Exception e) { try { @@ -224,7 +224,7 @@ private void deleteInstanceId(final CallbackContext callbackContext) { cordova.getThreadPool().execute(new Runnable() { public void run() { try { - FirebaseInstanceId.getInstance().delete(); + FirebaseInstanceId.getInstance().deleteInstanceId(); callbackContext.success(); } catch (Exception e) { callbackContext.error(e.getMessage());