How to send an SMS in Phonegap using Cordova Documentation?

删除回忆录丶 提交于 2019-12-11 09:52:03

问题


This is a followup question to this and I figured that we can access native functionality of the phone in javascript using Phonegap Documentation. I tried playing with notification api and it worked pretty well but could not find anything in the documentation about sending SMSes. I've come across Phonegap-Start kit and SMSPlugin for Phonegap but do not know how to integrate that with Phonegap-Start. In addition to it, I use build.phonegap.com to build my application so I'm not using eclipse for the same which is why the readme file of SMSPlugin was not much for the help.

Is it possible to do this?


回答1:


It's not possible at the moment.

It doesn't look like you can add your own plugins in Phonegap Build yet:

https://build.phonegap.com/docs/plugins

Moreover, SMSPlugin has not been officialy updated to work with Phonegap 2.0 yet AFAIK.




回答2:


You don't need PhoneGap plugins to do this, using html or js to open an "sms://" protocol link. There is loose documentation all over the web on this (but not much officially from either Apple or Google developer sites). There is a decent thread here on SO here, including how the syntax changed for iOS 7+.



来源:https://stackoverflow.com/questions/11921401/how-to-send-an-sms-in-phonegap-using-cordova-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!