I am developing an hybrid app in Ionic framework with this plugin for local notifications. In Apple documentation, it is mentioned that an app can't schedule more than 64 local notifications and if the number exceeds the limit, then only the soonest firing 64 notifications will fire. But, when I tried to schedule the notifications, I was able to schedule more than 64 notifications and all of them were fired. Here is the code snippet -
$scope.addLocalNotification = function (){
var alarmTime = new Date();
var options = [];
for ( var i = 0; i < 130 ; i++) {
var id = i;
var time = alarmTime.setSeconds(alarmTime.getSeconds() + 10);
var option = {
id: id,
at: time,
text: 'This is a message number ' + i ,
title: 'This is a title',
sound: null
}
options.push(option);
}
$cordovaLocalNotification.schedule(options).then(function (){
console.log('All notifications are set.');
});
}
Please suggest if I've done anything in a wrong way. If not, then what's the reason that more than 64 notifications can be scheduled and fired, when Apple documentation itself says that it's not possible?
The app was tested on iOS 8.3 and the version of the plugin used is 'de.appplant.cordova.plugin.local-notification 0.8.2dev'.