如何实现SMSPluging科尔多瓦应用? [英] How to implement SMSPluging in Cordova Application?
问题描述
我使用的科尔多瓦版本3.4.0。与CLI。该项目的概念是从的PhoneGap 应用程序发送短信。
I am using Cordova Version 3.4.0. with CLI. The Concept of the project is to send SMS from phoneGap Application.
下面是一个用于创建此项目的命令。
Below is the command used to create this project.
$ cordova create PluginExample com.example.pluginexample PluginExample
$ cd PluginExample $ cordova platform add android
$ cordova plugin add org.apache.cordova.network-information
$ cordova plugin add https://github.com/asanka-x/Phonegap-SMS.git
$ cordova run android
*** smsplugin.send(number, message, '', success, error);
当我点击出现以下错误信息发送按钮,
// 错误信息失败:类没有找到
When i click on Send Button the below error message occurs,
// Error Message Failed: Class not found
在ADT的Eclipse,在LogCat中显示的信息如下
插件管理 - >执行exec()调用未知插件:SMSPlugin
In ADT Eclipse, the below message is shown in LogCat PluginManager -> exec() call to unknown plugin: SMSPlugin
如何实现这一点?
我主持在GitHub上的项目
https://github.com/ideepakrnd/PhoneGapPlugin
I have hosted the project in GitHub https://github.com/ideepakrnd/PhoneGapPlugin
推荐答案
检查您的plugin.xml文件,我觉得必须在添加SMSPlugin。
Check your plugin.xml file, I think have to add SMSPlugin in that.
<plugin name="SMSPlugin" value="info.asankan.phonegap.smsplugin.SmsPlugin"/>
这篇关于如何实现SMSPluging科尔多瓦应用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!