question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Paddy78decommented, Mar 1, 2018

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 😃

0reactions
rwillettcommented, Feb 27, 2018

Ok, let me see if we have anything with 11.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automation: Email trigger not working? - Apple Community
I set up another. I immediately restarted the iPhone. It worked. I modified the email trigger. It stopped working. Then I restarted the...
Read more >
Unable to trigger Local Notification IOS 11 #1527 - GitHub
I would move to the latest plugin and get that working. The old one will not be supported and probably has issues anyway...
Read more >
Backbone COD Mobile Trigger Not Working - Reddit
Hi all I got the Backbone for my nephew, he has an iPhone 11 and the trigger will not work on COD mobile....
Read more >
HTML5 Audio 'trigger play' not working on iPad - Stack Overflow
I have an HTML5 audio player that should play when an element has been clicked. It works fine in all desktop browsers. It's...
Read more >
An iOS 11 Local Notification Tutorial - Techotopia
A guide to triggering and handling iOS based local notifications using the User Notifications framework.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found