本地通知使应用程序崩溃

Local notifications crashes app

我在 PhoneGap 上使用最新版本的 de.appplant.cordova.plugin.local-notification (iOS / Android / Windows) cli-5.2.0 (3.9.1 / 4.1.1 / 3.8.1).

只要我的应用程序执行本地通知代码,它就会使应用程序崩溃(仅在 iOS 上尝试过)。

我在 "deviceready" 处理程序中有以下代码行:

cordova.plugins.notification.local.schedule({
id: 1,
text: "Single Notification",
title: "Yo"
});

有什么问题以及如何解决的想法吗?

配置 xml 包含:

<gap:plugin name="de.appplant.cordova.plugin.local-notification" />

IOS9 有问题。

尝试:

Add the following to your config.xml to use version 0.8.2 of this plugin (recommended)::

<gap:plugin
 name="de.appplant.cordova.plugin.local-notification-ios9-fix"
 version="0.8.2" />

更多信息https://github.com/katzer/cordova-plugin-local-notifications/issues/694 and https://build.phonegap.com/plugins/4859