Closed avishayhajbi closed 9 years ago
Please post sample code, length of the string and the platform you are using.
var time = new Date().getTime(); var options= { repeat : 'yearly', seconds : 1, title : "notification", message : "somthing", icon : "icon", badge : time }; localNotification.add(time,options);
that's my code .
@avishayhajbi what platform and device?
device galaxy s3 platform phonegap 3.4.0 cordova 3.5.0
@avishayhajbi sorry for the late reply:
I was not able to reproduce your problem. Your code only shows one notification. I was able to make two notifications. I push a fix to use callbacks to the add()
api. Here is a working example below:
var options = {
"message" : "testing",
"seconds" : 10,
"badge" : 1,
"title" : "first"
};
window.localNotification.add(1, options, function () {
successCb();
var newOptions = {
"message" : "testing",
"seconds" : 11,
"badge" : 1,
"title" : "second"
};
window.localNotification.add(2, newOptions, function () {
alert("second finished");
successCb();
}, failureCb);
}, failureCb);
No reply. Closing.
i'm using cordova 3.5.0 and when i execute two notification with different id only the last notification appear. how to fix it ?