I scheduled local notification in iOS with 5 sec delay in each notification.
But they deliver after 2, 3 minutes simultaneously all.
Please provide me the solution
var d = new Date();
d.setSeconds(d.getSeconds() + 5);
this.localNotifications.schedule({
id: 2,
text: ‘Hi Test 2’,
at: d
});
d.setSeconds(d.getSeconds() + 5);
this.localNotifications.schedule({
id: 3,
text: ‘Hi Test 3’,
at: d
});
d.setSeconds(d.getSeconds() +5);
this.localNotifications.schedule({
id: 4,
text: ‘Hi Test 4’,
at: d
});