diff --git a/src/android/notification/Notification.java b/src/android/notification/Notification.java index 34c458473..e66467b2d 100644 --- a/src/android/notification/Notification.java +++ b/src/android/notification/Notification.java @@ -221,21 +221,21 @@ void schedule(Request request, Class receiver) { context, 0, intent, FLAG_CANCEL_CURRENT); try { - switch (options.getPrio()) { - case PRIORITY_MIN: - mgr.setExact(RTC, time, pi); - break; - case PRIORITY_MAX: + //switch (options.getPrio()) { + // case PRIORITY_MIN: + // mgr.setExact(RTC, time, pi); + // break; + // case PRIORITY_MAX: if (SDK_INT >= M) { mgr.setExactAndAllowWhileIdle(RTC_WAKEUP, time, pi); } else { mgr.setExact(RTC, time, pi); } - break; - default: - mgr.setExact(RTC_WAKEUP, time, pi); - break; - } + // break; + // default: + // mgr.setExact(RTC_WAKEUP, time, pi); + // break; + //} } catch (Exception ignore) { // Samsung devices have a known bug where a 500 alarms limit // can crash the app