Open stenioanibal opened 6 years ago
Try:
cordova.plugins.notification.local.schedule({
id: notificationId,
title: title,
text: text,
trigger: {
every: {
weekday: 5,
hour: 19,
minute: 0,
},
count: 365,
},
});
Try:
cordova.plugins.notification.local.schedule({ id: notificationId, title: title, text: text, trigger: { every: { weekday: 5, hour: 19, minute: 0, }, count: 365, }, });
if i nee to trigger every minute that matches "48", it will happen 24 times a day, so the counts will end after ~15 days, right?
how can I trigger a notification that matches a specific time forever ?
@Simpler1 Could you please tell me that how can I set the repeated local notification for every weekday(Monday, Tuesday, Wednesday Thursday, Friday) at a specific time?
@rushabhmakwana This is a expected result for me but, I can't get this in my tests. Now I trying to verify again this problem to find a solution. When I get that, I update this post to help you. Please @katzer help us with this problem.
@Simpler1 What is the magic about the count: 365
? This apparently works perfect for me but, I don't understand that because, independent of count value, the notification is successful fired, only one time in correct moment (different from case without the count, where the notification makes a loop into the entire minute). Can you explain this count
for us? Unfortunately, the docs not light this for me.
Is there any solutions for this problem ? @rushabhmakwana
Check this #1533
Plugin version: cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
Platform: Android
OS version: 6.0.1
Device manufacturer / model: Samsung J5
Cordova version (
cordova -v
): 8.0.0Cordova platform version (
cordova platform ls
): 7.0.0Plugin config:
this.localNotifications.schedule({ id: notificationId, title: title, text: text, icon: "res://icon", smallIcon: "res://notification", color: '#000000', every: { weekday: 5, hour: 18, minute: 37 } });
Ionic Version: 4.0.1
Expected Behavior
I need to schedule one repeatable local notification to every Friday at 19h.
Actual Behavior
I using your plugin in ionic (https://ionicframework.com/docs/native/local-notifications/) but the parameters to repeat notifications is different of docs. In my case, parameters same
every
is aELocalNotificationTriggerUnit
, not string (like your docs). I'm trying create a schedule and repeatable notification in all Fridays of weeks but, this not working because, the comments of plugin file not light my life to perfect understand a method to implement that.I try to implement equals actual docs but, not working.
This is the parameters of
ILocalNotificationTrigger
:How i make that? Sorry for my mistake and thanks for your attention.