deleteInstanceId (Android only)

This commit is contained in:
Michele Bombardi 2017-09-26 16:58:47 +02:00
parent afe7bed6e2
commit 4c8581211a
1 changed files with 3 additions and 7 deletions

View File

@ -74,13 +74,9 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements L
@ReactMethod
public void deleteInstanceId(Promise promise){
try {
FirebaseInstanceId.getInstance().deleteInstanceId();
promise.resolve(null);
} catch (IOException e) {
e.printStackTrace();
promise.reject(null, e.getMessage());
}
Log.d(TAG, "Deleting instance id");
FirebaseInstanceId.getInstance().deleteInstanceId();
promise.resolve(null);
}
@ReactMethod