Merge pull request #1088 from pranjal-jain/fix-cancel-notification
[Android] [Notifications] Fix cancel notification promise
This commit is contained in:
commit
7fb3e1464e
@ -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…
x
Reference in New Issue
Block a user