1

I have tried to open Whatsapp from Android Phonegap but getting application error:

"The protocol is not supported. (whatsapp://send?text=Hi)"

Tested on Andriod phones 2.3 and 4.4. But same error is shown

Javascript:

document.location.href = 'whatsapp://send?text=Hi';

Please help. Thanks!

Tharif
  • 13,794
  • 9
  • 55
  • 77
k.a
  • 11
  • 1
  • 3

1 Answers1

1

I see your problem.

Try: <a href="whatsapp://">CLICK</a>

If that has no effect, you can refer to this plugin.

Another stackoverflow question similar to yours: URL Scheme for Android

Community
  • 1
  • 1
Colin
  • 865
  • 1
  • 6
  • 23