From 10680f230f66672abc3713d35e23708c480d396a Mon Sep 17 00:00:00 2001 From: lampaa Date: Mon, 7 Dec 2015 16:19:20 +0300 Subject: [PATCH] add whatsapp example --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e57e96e..1a75b4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -cordova-plugin-startapp # Upd 18.12.2014 +cordova-plugin-startapp # Upd 7.11.2015 =========================================================================== Phonegap 3.x.x plugin for check or launch other application in android device. @@ -111,6 +111,16 @@ Example, call facebook: ```js navigator.startApp.start([["action", "VIEW"], ["fb://facewebmodal/f?href=https://www.facebook.com/GitHub"]], ...); ``` +Example, call whatsapp: +```js +navigator.startApp.start([["action", "SEND", "com.whatsapp", "text/plain"], [{"android.intent.extra.TEXT":"Text..."}]], ...); +``` +Example, call whatsapp chat: +```js +navigator.startApp.start([["action", "SEND", "com.whatsapp", "text/plain", "+79123456789"], [{"android.intent.extra.TEXT":"Text..."}, {"chat", true}]], ...); +``` + + Use **iOS**