From 2400d9dcaa05a1a73ceb361202af0ff40698574d Mon Sep 17 00:00:00 2001 From: oranedir Date: Fri, 13 May 2022 09:51:52 +0200 Subject: [PATCH] remove useless modif --- src/android/com/gae/scaffolder/plugin/FCMPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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());