1 year ago
#216823
thisis myname
Schedule notifications with random text every day the cordova-plugin local-notifications
I would like to schedule a notification that repeats every day but with a different text.
var texts = ['Text1', 'Text2', 'Text3', 'Text4', 'Text5' ];
cordova.plugins.notification.local.schedule({
id: 1,
text: texts[Math.floor(Math.random() * texts.length)],
trigger: { every: 'day', count: 1 }
});
However, i get the same text every day.
android
ios
cordova
cordova-plugins
localnotification
0 Answers
Your Answer