- Installed newest Xcode (7.3.1)
- Installed newest PhoneGap (6.2.7)
- Created default PhoneGap app
- Installed local notification plugin using
phonegap plugin add de.appplant.cordova.plugin.local-notification
- Added code to create notification (see below)
- Ran using
phonegap run iOS
- No notification appears
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 as to what I'm doing wrong?
Aucun commentaire:
Enregistrer un commentaire