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.

FirstAt and every parameter not working in IOS & Android

See original GitHub issue

WARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

  • Plugin version:0.9.0-beta.3
  • Platform:iOS & Android
  • OS version: IOS: 10^ Android : 4.4^
  • 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”
  • Ionic Version (if using Ionic): 3.19.0

Expected Behavior

Notification should appear every day at specific time.

Actual Behavior

Ios: every parameter not working and notification are not getting triggered. Android : Notification get triggered but not at specific time.

Steps to Reproduce

let momentOfFirstAt = moment(currentDateTime); let firstAt = new Date(momentOfFirstAt.toString()); cordova.plugins.notification.local.schedule({ title: “Daily Reminder”, trigger:{ at: firstAt, every: “day” }, foreground:true });

Context

Trying to show a notification everyday at a specific date.

Debug logs

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

5reactions
gecsbernatcommented, Mar 14, 2018

I solved it. First create a notification object, then pass that object to the schedule method. No need for ‘at’ or ‘firstAt’ option.

let notification = {
 id: 1,
 title: 'TITLE',
 text: 'TEXT',
 trigger: { every: { hour: 10, minute: 0 } }
};

this.localNotifications.schedule(notification);

This will trigger notification every day at 10:00 from now. If today we passed 10:00 it will start tomorrow. Plugin version: 0.9.3-beta.3 Tested on IONIC3 IOS 11+ 😃

1reaction
ghostcommented, Mar 20, 2018

The notification keeps coming until after the time the time has expired.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter plugin: invoking iOS and Android method including ...
But now I would like to invoke a method that has parameters. For iOS, I can't get it to work for some reason....
Read more >
[firebase_analytics] `FirebaseAnalytics ... - GitHub
In order to reset all parameters, you should pass null. That's what the documentation for Android and iOS says. Android: Parameters to b......
Read more >
Flex Layout Animation - HCL Volt MX Documentation - Open Source
This feature supports 2D and 3D animations and transformations. The 2D animations are supported on iOS, Android, Windows, and SPA platforms and the...
Read more >
Resolved Issues in ArubaOS 8.8.0.0 - Aruba Networks
New Bug ID Old Bug ID Reported Version AOS‑134310. AOS‑141737. AOS‑209401 162993. 172569 ArubaOS 8.3.0.0 AOS‑138391. AOS‑209275 168088 ArubaOS 8.2.0.0 AOS‑138446. AOS‑210178 168158 ArubaOS 8.5.0.9
Read more >
HTML Standard
... the W3C membership decided to stop evolving HTML and instead begin work on ... of HTML5 after all, and in 2007 formed...
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