fix(notifications): Resolve promise on after notification is cancelled
This commit is contained in:
parent
e68118e049
commit
4efb0c4dcf
|
@ -85,6 +85,7 @@ public class RNFirebaseNotificationManager {
|
|||
try {
|
||||
cancelAlarm(notificationId);
|
||||
preferences.edit().remove(notificationId).apply();
|
||||
promise.resolve(null);
|
||||
} catch (SecurityException e) {
|
||||
// TODO: Identify what these situations are
|
||||
// In some devices/situations cancelAllLocalNotifications can throw a SecurityException.
|
||||
|
|
Loading…
Reference in New Issue