Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/presttec/cordova-plugin-vsms-whatsapp
https://github.com/presttec/cordova-plugin-vsms-whatsapp
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/presttec/cordova-plugin-vsms-whatsapp
- Owner: presttec
- License: mit
- Created: 2019-06-29T13:45:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T14:53:00.000Z (over 5 years ago)
- Last Synced: 2024-11-13T09:20:15.558Z (2 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cordova-plugin-vsms-whatsapp
========================
This plugin opens a chat session with the given phonenumber in Whatsapp on Android.The behavior is similar to the generic tel:, smsto:, or mailto: URL schemes on iOS and Android.
iOS supports a generic URL scheme for whatsapp ("whatsapp://send?abid=").
However on Android the URL scheme is currently not supported.
This plugin implements the send-via-whatsapp functionality on Android.Methods
-------- cordova.plugins.Whatsapp.send
Example
-------
Say you want to open a chat session with phone number: 111-222-3333cordova.plugins.Whatsapp.send("1112223333");
This will open a chat session in Whatsapp for the target contact.
Installation
------------For cordova or ionic
cordova plugin add https://github.com/presttec/cordova-plugin-vsms-whatsapp.git
ionic plugin add https://github.com/presttec/cordova-plugin-vsms-whatsapp.gitAdd the following xml to all the app config.xml file: