开发者

Send SMS through PhoneGap on Android

I am exp开发者_Go百科loring capabilities and features of PhoneGap. I have gone through the PhoneGap site. Is there any possibility (or) workaround to send text messages and access phonebook information of Android using the PhoneGap framework?


Yes on both accounts. There are Contacts and SMS classes as part of the Javascript API.


The function is outdated.

But Plugins will get it work:

  • SMS inbox_sent_access (Android)
  • SMSComposer Plugin (iPhone)

According to the Roadmap planing, Phonegap will add a messaging API in summer 2012.


You can also write phonegap plugins to achieve functions on top of phonegap (e.g. send SMS).

See the github project https://github.com/phonegap/phonegap-plugins.

Basically the crux of it is that you can write native android (or other platform) code with inside the plugin, register that plugin with the phonegap plugin manager and then youll have access to all APIs (e.g. SMSManager) :-)


For version 2.3, also check this: https://github.com/dimitrismistriotis/SendSmsCordovaPlugin, MIT liscnse. (Disclaimer: Written by me).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜