Trigger "at" not working on iOS 11
See original GitHub issue- Plugin version: 0.9.0-beta.3
- Platform: iOS
- OS version: 11.2
- Device manufacturer / model: Apple iPhone 6s Plus and iOS Simulator
- Cordova version (
cordova -v
): 7.1.0 - Cordova platform version (
cordova platform ls
): ios 4.5.4 - Plugin config cordova-plugin-device 1.1.7 “Device” cordova-plugin-dialogs 1.3.4 “Notification” cordova-plugin-globalization 1.0.8 “Globalization” cordova-plugin-local-notification 0.9.0-beta.3 “LocalNotification” cordova-plugin-statusbar 2.2.0 “StatusBar” cordova-plugin-whitelist 1.3.3 “Whitelist” cordova-sqlite-ext 0.10.6 “Cordova sqlite storage plugin with extra features”
- Ionic Version (if using Ionic) -
Expected Behavior
Notification should appear ath the given date, when using the “at” trigger
Actual Behavior
Notifcation doesn’t appear, it works with the “in” trigger though.
The plugin worked in version 0.8 in the same app (Not with trigger: { at: …} but with at: …
Steps to Reproduce
Sample code in my test app:
cordova.plugins.notification.local.schedule({ title: ‘Test’, text: ‘Test notification’, trigger: { at: new Date(2018, 1, 26, 12,26) } });
cordova.plugins.notification.local.schedule({
title: ‘Test with in’, text: ‘Test notification with in’, trigger: { in: 1, unit: ‘minute’ } });
The first notification should have been displayed at 12:26 on Feb 26th 2018 but it did not. Localization settings on the device and the simulator are correct (Tested with new Date() ) The second notification showed up after a minute.
Context
Trying to show a notification at a specific date.
Debug logs
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Hello,
The problem is solved and it’s not a bug. I stumbled over the iOS notification limit. Only 64 notifications can be stored. Thanks for the support and the plugin, keep up the good work 😃
Ok, let me see if we have anything with 11.2.