[英]How to Declare Canvas2Image Plugin in config.xml using Phonegap 2.4
[英]How to Declare Plugin in config.xml using Phonegap 2.9
我想為我的iOS應用程序使用WaitingDialog插件來顯示活動指示器。 我正在使用與Xcode 5兼容的PhoneGap 2.9。我不知道如何在PhoneGap 2.9中聲明插件。 誰能告訴我插件在PhoneGap 2.9中是如何發生的。
插件鏈接:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/WaitingDialog
問候,Varun Mehta
經過大量搜索后,我找到了解決我的問題的方法,並希望與仍然面臨該問題的其他人分享。 使用PhoneGap 2.9.0在iOS應用程序中顯示活動指示器。 請按照以下步驟操作:
轉到“ https://github.com/phonegap/phonegap-plugins/tree/master/iOS/WaitingDialog ”並使用此插件。
轉到<ProjectDirectory>
/config.xml並聲明您的插件
<feature name="WaitingDialog"> <param name="ios-package" value="WaitingDialog" /> </feature>
在您的JS文件中將其用作
window.plugins.waitingDialog.show("please wait..");
請注意:在PhoneGap 2.9.0中, cordova.plist已棄用到config.xml,而<plugins>
標簽已棄用到<feature>
<feature name="PushPlugin">
<param name="ios-package" value="PushPlugin"/>
</feature>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.