I have a requirement of sending a url(myapp://app.myapp.com/data
)with custom scheme through WhatsApp.But in WhatsApp its not showing custom scheme(myapp://
) as link. Only app.myapp.com/data
is showing as link.
I have tried below code:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT,"Please check this link: "+Html.fromHtml("myapp://app.myapp.com/data"));
intent.setType("text/plain");
startActivity(Intent.createChooser(intent, "Select Chooser to send friend"));
Is it possible to send link with custom scheme on WhatsApp in android platform?