fix(notifications): Resolve promise on after notification is cancelled

This commit is contained in:
Pranjal Jain 2018-05-15 01:57:03 +05:30
parent e68118e049
commit 4efb0c4dcf
1 changed files with 1 additions and 0 deletions

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.