PhoneGap / Cordova local notification scheduling not working on iOS simulator

  • Installed latest Xcode (7.3.1)
  • Installed latest PhoneGap (6.2.7)
  • PhoneGap application created by default
  • Installed local notification module using phonegap plugin add de.appplant.cordova.plugin.local-notification
  • Added code to create a notification (see below)
  • Use phonegap run iOS
  • Notification Not Displayed

Code in index.js:

document.addEventListener('deviceready', function () {
    try {
        cordova.plugins.notification.local.schedule({
            text: "This is the text.",
            at: new Date(new Date().getTime() + 10000)
        });
    } catch (e) {
        alert("Fail " + e);
    }
});

Any suggestion on what I'm doing wrong?

+4
source share
2 answers

I tried the same code and it runs on the simulator.

, , , . , ( cmd + shift + h), , (10 ), .

, , ios . .

+3

iPhone 5s. , . Infact, , , , . .

, , , "" , . , , : (

. iOS . , "" "" .

+1

All Articles