Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase dynamic link generated via API open appstore

I'm creating a dynamic link via API.

How can I specify to open the AppStore if the app is not installed?

here the body for my request:

{
"dynamicLinkInfo": {
"domainUriPrefix": "https://wi.page.link",
"link": "https://wiapp.com.au/faq?promocode=mypromo_code",
"iosInfo": {
  "iosBundleId": "com.direce.sr",
  "iosFallbackLink":"id1356389392",
  "iosAppStoreId":"id1368389392",
   },
  "socialMetaTagInfo" :{
  "socialImageLink":"https://vignette.wikia.nocookie.net/doraemon/images/b/b8/Doraemon_2005.PNG/revision/latest?cb=20151207094313&path-prefix=en",
  "socialTitle":"my titu",
  "socialDescription":"descripotio"
  }  

 },
"suffix": {
 "option":"UNGUESSABLE"
},
}

this works if I create the dynamic link via firebase console, where I can specify what to do if app not installed

enter image description here

like image 993
manuelBetancurt Avatar asked Sep 18 '26 00:09

manuelBetancurt


1 Answers

Ok! found the problem, is the

"iosAppStoreId":"id1368389392"

it is different value if creating from the dashboard or for API, so the correct one when doing from, API should be without the "id"

"iosAppStoreId":"1368389392"

like image 97
manuelBetancurt Avatar answered Sep 20 '26 12:09

manuelBetancurt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!