Send SMS through PhoneGap on Android

前端 未结 4 1138
栀梦
栀梦 2020-12-05 00:57

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 phoneb

相关标签:
4条回答
  • 2020-12-05 01:36

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

    0 讨论(0)
  • 2020-12-05 01:50

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

    0 讨论(0)
  • 2020-12-05 01:58

    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) :-)

    0 讨论(0)
  • 2020-12-05 02:03

    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.

    0 讨论(0)
提交回复
热议问题