Firebase Dynamic Link Cannot Shorten A Short Dynamic Link
I referred many questions in site ,but I can't still getting trouble to generate short dynamic link using Firebase Dynamic Links. I am trying to generate short dynamic link from a
Solution 1:
try using the original url https://app.page.link/ instead of https://app.page.link/ChosenName
in your case it'll be: setDomainUriPrefix("https://onestickers.page.link/") instead of setDomainUriPrefix("https://onestickers.page.link/Stickers")
Solution 2:
Create short link also when you create long link like this
Uri.Builderbuilder=newUri.Builder();
builder.scheme("https")
.authority("api.wastickerapp.co")
.appendQueryParameter("packid", pid);
FirebaseDynamicLinks.getInstance().createDynamicLink()
.setLink(builder.build())
.setDomainUriPrefix("https://onestickers.page.link/Stickers")
.setAndroidParameters(
newDynamicLink.AndroidParameters.Builder()
.setMinimumVersion(11)
.build())
.setSocialMetaTagParameters(
newDynamicLink.SocialMetaTagParameters.Builder()
.setTitle("One Stickers")
.setDescription("Stickers for WhatsApp - WAStickerApps")
.setImageUrl(Uri.parse("https://onestickers.com/img/main-logo.png"))
.build())
.buildShortDynamicLink()
Post a Comment for "Firebase Dynamic Link Cannot Shorten A Short Dynamic Link"