ranjitpandit / whatsapp-phonegap-plugin

MIT License
32 stars 12 forks source link

whats happen when user dont have whatsapp? #1

Closed boynet closed 9 years ago

boynet commented 9 years ago

can you make it default to work like tel: ?

ranjitpandit commented 9 years ago

If the user does not have whatsapp the plugin simply returns with errorCallback.

Here is an example:

if( cordova.plugins.Whatsapp) {
   cordova.plugins.Whatsapp.send(action.context.value,
   function(){
      console.log("whatsapp send success!");
   },
   function(){
       console.log("whatsapp send error!!");
   });
}

can you clarify what you mean by work like tel: ?

boynet commented 9 years ago

oh thanks

purelydeft commented 8 years ago

Hello Ranjit

First of all thanks for this amazing plugin, but each time install this plugin and run on my phonegap app, it shows the WhatsApp number you are trying to send msg to does not registered on whtsapp but I have tried with multiple numbers registered on whatsapp.

Can you please let me know, which one is the correct format of number to send whatsapp msg to?

Regards Deftsoft Developer

unaor commented 8 years ago

Hiim not the dev of the plugin , im a user

  From: purelydeft <notifications@github.com>

To: ranjitpandit/whatsapp-phonegap-plugin whatsapp-phonegap-plugin@noreply.github.com Sent: Friday, July 24, 2015 6:18 AM Subject: Re: [whatsapp-phonegap-plugin] whats happen when user dont have whatsapp? (#1)

Hello RanjitFirst of all thanks for this amazing plugin, but each time install this plugin and run on my phonegap app, it shows the WhatsApp number you are trying to send msg to does not registered on whtsapp but I have tried with multiple numbers registered on whatsapp.Can you please let me know, which one is the correct format of number to send whatsapp msg to?Regards Deftsoft Developer— Reply to this email directly or view it on GitHub.

NayHaPal commented 7 years ago

WhatsApp number you are trying to send msg to does not registered on whtsapp but I have tried with multiple numbers registered on whatsapp.

can you solve this problem !!? how we can pass this messages ?!