How invoke Whatsapp Business or Whatsapp

I just need to do two buttons, one to invoke Whatsapp Business other Whatsapp.

Using https://api.WhatsApp.com/send?phone...can invoke one or other, but not allows to choice sometimes, so…is there a way to choice one or other at bubble?

At android using kotlin and java, based on (https://faq.whatsapp.com/1530794880435103/)
Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, “This is my text to send.”); sendIntent.setType(“text/plain”); startActivity(sendIntent);

using setPackage

sendIntent.setPackage(“com.whatsapp”);


Any suggestion
Best regards,
Giorgio

1 Like

Working on something similar, will follow this!

You can use the Yo WhatsApp for this…

1 Like

Hi, thanks for your help…I will try this :pray:

This topic was automatically closed after 70 days. New replies are no longer allowed.