Skip to content

Commit

Permalink
remove useless modif
Browse files Browse the repository at this point in the history
  • Loading branch information
oranedir committed May 13, 2022
1 parent 99a0b27 commit 2400d9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/com/gae/scaffolder/plugin/FCMPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void getInitialPushPayload(CallbackContext callback) {

public void getToken(final TokenListeners<String, JSONObject> callback) {
try {
FirebaseInstanceId.getInstance().getId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
@Override
public void onComplete(Task<InstanceIdResult> task) {
if (!task.isSuccessful()) {
Expand All @@ -201,7 +201,7 @@ public void onComplete(Task<InstanceIdResult> task) {
}
});

FirebaseInstanceId.getInstance().getId().addOnFailureListener(new OnFailureListener() {
FirebaseInstanceId.getInstance().getInstanceId().addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(final Exception e) {
try {
Expand All @@ -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());
Expand Down

0 comments on commit 2400d9d

Please sign in to comment.