import java.io.IOException
This commit is contained in:
parent
4c8581211a
commit
d119de19d4
|
@ -27,6 +27,7 @@ import com.google.firebase.messaging.RemoteMessage.Notification;
|
|||
|
||||
import io.invertase.firebase.Utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -74,9 +75,14 @@ public class RNFirebaseMessaging extends ReactContextBaseJavaModule implements L
|
|||
|
||||
@ReactMethod
|
||||
public void deleteInstanceId(Promise promise){
|
||||
Log.d(TAG, "Deleting instance id");
|
||||
FirebaseInstanceId.getInstance().deleteInstanceId();
|
||||
promise.resolve(null);
|
||||
try {
|
||||
Log.d(TAG, "Deleting instance id");
|
||||
FirebaseInstanceId.getInstance().deleteInstanceId();
|
||||
promise.resolve(null);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
promise.reject(null,e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
|
|
Loading…
Reference in New Issue