我正在嘗試使用PushPlugin開發iOS應用程序。我對着下面的錯誤:在使用科爾多瓦的iOS應用程序中未找到PushPlugin
DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release.
2013-12-23 17:19:52.362 myApp[537:60b] CDVPlugin class PushPlugin (pluginName: PushPlugin) does not exist.
2013-12-23 17:19:52.363 miniOrangeAuthenticator[537:60b] ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2013-12-23 17:19:52.364 miniOrangeAuthenticator[537:60b] -[CDVCommandQueue executePending] [Line 116] FAILED pluginJSON = [
"PushPlugin1458195152",
"PushPlugin",
"register",
[
{
"alert" : "true",
"ecb" : "onNotificationAPN",
"sound" : "true",
"badge" : "true"
}
]
]
我已經加入config.xml文件的依賴性如下:
<feature>
<param name="ios-package" value="PushPlugin" />
</feature>
我也嘗試用下面的代碼舊的插件格式:
<plugin name="PushPlugin" value="com.phonegap.plugins.PushPlugin" />
即使這給了我同樣的錯誤。
我想在一個真正的iOS設備上。
這裏可能是什麼問題?
這個插件是通過命令行添加的。儘管tokenHandler沒有被調用。任何想法爲什麼? –