无法使用config.xml安装PushPlugin

时间:2013-11-16 06:36:37

标签: cordova apple-push-notifications cordova-3

我无法在我的项目中获取IOS通知的PushPlugin。谷歌似乎已将语法从插件标签切换为功能标签。

的Config.xml

1.
<feature name="PushPlugin">
    <param name="ios-package" value="PushPlugin"/>
</feature>

2.    
<gap:plugin name="com.phonegap.plugins.PushPlugin"/>

3.
<feature name="PushPlugin">
    <param name="ios-package" value="com.phonegap.plugins.PushPlugin" />
</feature>

4.
<plugins>
    <plugin name="PushPlugin" value="PushPlugin" />
</plugins>


ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2013-11-15 22:18:01.155 Inviter[840:60b] -[CDVCommandQueue executePending] [Line 117]   FAILED pluginJSON = [
"PushPlugin422665712",
"PushPlugin",
"register",
[
{
  "alert" : "true",
  "ecb" : "app.onNotificationAPN",
  "sound" : "true",
  "badge" : "true"
}
]
]

1 个答案:

答案 0 :(得分:2)

我从config.xml中删除了所有其他插件配置,这似乎有效 -

<feature name="PushPlugin">
    <param name="ios-package" value="PushPlugin" />
</feature>