简体   繁体   中英

Send SMS through PhoneGap on Android

I am exploring 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:

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 (eg 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 (eg SMSManager) :-)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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