简体   繁体   English

使用phonegap发送短信

[英]Using phonegap for send SMS

I am new in phonegap. 我是新来的。 I try install last version phonegap via cmd, the phonegap installed but i don't see cordova 3.4.jar for add to my library. 我尝试通过cmd安装最新版本的phonegap,安装了phonegap,但是我看不到cordova 3.4.jar可以添加到我的库中。 I try build with cmd but i can't, i give error in "phonegap platform add android" , the error is "platform add android" is not a node in my directory. 我尝试使用cmd进行构建,但是我不能,在“ phonegap platform add android”中给出错误,错误是“ platform add android”不是我目录中的节点。 i searched but i can't solve this. 我搜索了,但是我解决不了。 anyway, i forgot phonegap 3.4 :( 无论如何,我忘记了phonegap 3.4 :(

i get phonegap 2.9 and unzip in development folder and i copy cordova2.9.jar to my project. 我得到phonegap 2.9并解压缩到开发文件夹中,然后将cordova2.9.jar复制到我的项目中。 I write a page with javascript and html for show information about device and i can send sms. 我用javascript和html编写了一个页面,以显示有关设备的信息,并且我可以发送短信。 but when i press on button for send sms, sms not send and i show alert fail, i guess, the program dont call sendSMS to java file.but i don't know why? 但是,当我按下发送短信的按钮时,短信未发送并且我显示警报失败,我想程序不会将sendSMS调用到java file.but我不知道为什么? and how Can i solve this? 以及我该如何解决? and the my question is, the problem may be from install phonegap 3.4 and use cordova 2.9? 我的问题是,问题可能出在安装phonegap 3.4和使用cordova 2.9?

Thanks for advise and sorry for my long message 感谢您的建议,对不起,我很长的信息

For using PhoneGap 3.4 use following instruction . 要使用PhoneGap 3.4,请遵循以下说明

After that use these plugin for https://github.com/aharris88/phonegap-sms-plugin for sending SMS from phonegap 3.4 application. 之后,将这些插件用于https://github.com/aharris88/phonegap-sms-plugin从phonegap 3.4应用程序发送SMS。

I got success for sending SMS. 我发送短信成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM