2
0
mirror of synced 2025-02-17 00:36:31 +00:00

Merge pull request #1088 from pranjal-jain/fix-cancel-notification

[Android] [Notifications] Fix cancel notification promise
This commit is contained in:
Michael Diarmid 2018-05-15 00:23:26 +01:00 committed by GitHub
commit 7fb3e1464e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.