deleteInstanceId (Android only)
This commit is contained in:
parent
afe7bed6e2
commit
4c8581211a
|
@ -74,13 +74,9 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements L
|
||||||
|
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
public void deleteInstanceId(Promise promise){
|
public void deleteInstanceId(Promise promise){
|
||||||
try {
|
Log.d(TAG, "Deleting instance id");
|
||||||
FirebaseInstanceId.getInstance().deleteInstanceId();
|
FirebaseInstanceId.getInstance().deleteInstanceId();
|
||||||
promise.resolve(null);
|
promise.resolve(null);
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
promise.reject(null, e.getMessage());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
|
|
Loading…
Reference in New Issue