I am generating a FirebaseDynamicLink using below code:
DynamicLink baseDynamicLink = FirebaseDynamicLinks.getInstance().createDynamicLink()
.setLink(BASE_URI)
.setDynamicLinkDomain(DYNAMIC_LINK_DOMAIN)
.setAndroidParameters(new DynamicLink.AndroidParameters.Builder(BuildConfig.APPLICATION_ID).setMinimumVersion(MIN_VERSION).build())
.buildDynamicLink();
baseDynamicLinkUri = baseDynamicLink.getUri();
I am using below code to share it to other apps such as WhatsApp, gmail, etc:
public void shareDeepLinkWithExtraText(String extraText) {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, "Firebase Deep Link");
intent.putExtra(Intent.EXTRA_TEXT,extraText);
startActivity(intent);
}
The generated link looks like this: Check this out at my app - https://tvh54.app.goo.gl?amv=10&apn=mydomain.myapp&link=http%3A%2F%2Fwww.mydomain.co.in%2F.
Now the problem is - when shared on gmail, the complete link is tappable, however when shared on WhatsApp the link is tappable in parts. So https://tvh54.app.goo.gl is tappable, 2Fwww.mydomain.co.in is tappable.
How can I make complete link tappable on WhatsApp?
I can generate short link but problem is when there is no any Internet connection then short link cannot be obtained hence as a fallback mechanism I am allowing user to share the complete link.
In case if there is no any solution for the first query then is there any alternative solution to implement intended fallback mechanism?