Force Firebase dynamic link to open in app browser - android

If you create a dynamic link using the firebase console, it provides an option to define link behavior to either open the link in app or in a browser. How do we force a link to be opened only in a browser while creating the dynamic link with the REST API? Is there any parameter we can define to force this behavior?

You cannot force open the website using programmatically created short dynamic link in 4/2020. I tried them all. If the app is installed, it will always open the app and there isn't any param when you create dynamic link programmatically to force open it in the website. Funny because in console when you create it there, you can specify to force open in the website. If I am wrong, please comment or correct me. Filed the bug report to Firebase: https://github.com/firebase/firebase-ios-sdk/issues/5376

Try skipping the apn parameter from the url while create dynamic link from Rest API.
This will by default open the link in the browser.
Hope this will help you.

Related

Firebase dynamic link always open web version instead of Google play

App not installed. Clicking to firebase dynamic link lead to browser and open web content.
I am using this dynamic link: https://market.page.link/?link=https://market.kz/cabinet
I followed this doc: https://firebase.google.com/docs/dynamic-links/create-manually
I tried specify afl and apn but it didnt help.
The reason seems not be under developpers control. I had this problem too because i was always testing with the same app when opening the firebase dynamic link (Skype mobile).
I could not tell you exactly which app are causing this problem, but i can tell you that if you open a firebase dynamic link using skype in your Android device (strangely, it works fine with iOs), it will redirect to your browser at the Google play page.
You should try using another mobile app and open the link and see if it works. I tried facebook messenger and telegram and it works fine.
See more here : https://github.com/firebase/flutterfire/issues/2828

How to make a flutter app to be open with a custom URL?

I am working on a flutter app. We see that some apps like Facebook opens on clicking on the default domain name. Default apps for some domain names.
For example, clicking on facebook.com/foo opens the Fb application. How can we enable this in a flutter app? What is basic working happens there? Is there any code needed to make it happen on a flutter app?
you can use App-link / deeplink in your app to launch from a link .
App Link, Uni Link and deep link will help you a lot .
basically you have to analyse you requirements because you can achieve this by dynamic link, deep link and app link and these all look same but have their own functionalities so choose wisely which one is best for you.
you can use firebase dynamic link check this link
https://firebase.flutter.dev/docs/dynamic-links/overview/

how to make facebook android app deep links

I am trying to create a deep link that will redirect from a url I post on facebook into my android app and I noticed there is something in facebook api called App Links in this link : https://developers.facebook.com/docs/applinks/ but for some reason their docs has been removed and I have not found any possible way to achieve that...
How can I make a deep link from facebook into a specific page in my android app?
Weird that they took it down. Basically you need to implement HTML tags in your web page the link points to. Also you must have URI scheme implemented in your app.
Until the page comes back up I suggest you use their debug site:
https://developers.facebook.com/tools/debug/
You can scrape this test link got reference:
https://onelink-sim.onelink.me/coiD/simbananas

Firebase Dynamic Link when typed into Android Address Bar

As you can see here, i want to change the behavior of my Firebase Dynamic Link when it is typed into the Android Browser, because right now it redirects me to the PlayStore instead of Deep Linking into the app. How can i achieve such behavior?
While creating dynamic link you need to specify either you want to open any specific URL in browser or you need to open your app.
If you need to open your app when dynamic link gets clicked then at the time of creating new dynamic link you need to choose your app from drop down list instead of giving url.
If the app is installed already it will open it otherwise redirect you towards playstore.
For opening app from deep link you need to write code into your activity that can handle the coming deep link.
Chrome doesn't open the deep links some time due to wontfix bug in Chrome 40+.
Mentioned in link for detail.
Same is the case with Firebox and other browsers.
firefox broswer issue
Related Problem

Get referring url for Android or iOS installation

We have several landing pages that link to Google Play and iOS App Store. I would love to know the landing page that a person came from within the app code. I have searched around and can't find any clear answer. Lots of gray area.
I just want to access the landing page URL in Java or Swift.
I realize iOS and Android are two separate beasts. But does anyone know how I could achieve this?
You will need to use Firebase Dynamic Links this helps you create various links using various alternatives as shown in this quote from the official Firebase source:
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app.
Then your app can access the link in code using Java or Swift and the link will work even if the user has your app already in their phone and you can set a logic to handle that too and the links are also automatically direct the user to AppStore or PlayStore depending on which device is used.
Dont worry about whether the link will work for both Android and iOS and you can use the api to access the link as this quote says.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.
In addition, Dynamic Links work across app installs: if a user opens a Dynamic Link on iOS or Android and doesn't have your app installed, the user can be prompted to install it; then, after installation, your app starts and can access the link.
You can get more information on dynamic links here and check if it will solve your problem.

Categories

Resources