Differed deep link android - android

I am developing an e-commerce android app I have a product page in my application. I want to implement share functionality in my app so if anyone share product the unique should be generated and specific should be opened only. I have referred some sites like a branch but are not find fully demo so anyone that can give the reference that will be helpful

Use firebase dynamic link. It is very useful. If app is not installed, it will take the user to playstore link of your app. If installed then it will take the user to your desired activity based on your deeplink/dynamic link.. here is the link https://firebase.google.com/docs/dynamic-links/?gclid=EAIaIQobChMI5tip9-S_4QIVjo6PCh3S5wWoEAAYASABEgKaivD_BwE.

Related

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 can I create Firebase Dynamic-Links by two different links?

I want to create a dynamic link with two different original links.
One original link for Android, e.g: android://mePage/account
One original link for ios, e.g: https://mePage/account
From the docs of Firebase Dynamic-Links, I found there is a optional parameter al, and al=android_link.
So I create a Dynamic Link by manually constructing a URL:
https://myapp.app.goo.gl/?link=https://mePage/account&al=android://mePage/account
But maybe I misunderstand, it doesn't work.I have no way to resolve the android link from the al key.
So:
What does the al parameter really mean?
Any way I can acquire the parameter?
If it does not work, is there any way I can create a Dynamic Link with two different links?
There is a image to show what I saw.
And I found some extra information from another page.
There is no al parameter, did you meant afl? afl specifies the link, where navigation will happens if your App is not installed on Android. So that instead of navigating to PlayStore you can navigate to your page.
Answering your question about Android and iOS specific deep links: we do not have such feature. The same deep link will be passed to Android and iOS Apps.
If you want to separate the data for your Apps, you can use deep link constructed like this:
https://mePage/account?ios=<ios specific base64 data>&android=<android specific base64 data>
Than you can wrap this deep link inside Firebase Dynamic Link.
Not sure this provide enought value, but I do not know your requirements.
If you feel that you need this feature and Firebase Dynamic Links do not support it, feel free to open support ticket or describe your use case here. We always open to improvements and new feature suggestions.
Update
For those who are still looking like me,
as per the docs, https://firebase.google.com/docs/dynamic-links/create-manually
You can specify a different fallback link for IOS/Android using IFL/AFL params.
ifl
The link to open when the app isn't installed. Specify this to do
something other than install your app from the App Store when the app
isn't installed, such as open the mobile web version of the content,
or display a promotional page for your app.
afl
The link to open when the app isn't installed. Specify this to do
something other than install your app from the Play Store when the app
isn't installed, such as open the mobile web version of the content,
or display a promotional page for your app.

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.

Facebook action button link for iOS and Android

I am creating a Facebook for an app which is supported on both iOS and Android. While introducing the action button the Facebook post, the option is to provide only one link. How can I allow the click on the button to direct to Apple iTunes or Google Playstore depending on the mobile on which the button was clicked? I did try to do some search in regards to this and there are some discussions on deep linking which i don't fully understand. Is there a simple way achieve without having to modify anything on app?
Found the below website for creating short link which can direct to Apple iTunes or Android Playstore
tosto.re

Android Facebook sharing with deep links

I am currently sharing a link in my Android app by creating a chooser with an ACTION_SEND-Intent. I now want to add deep linking to the posts which already works with links from our iOS app into the Android app but not from links shared with the Android app. I think the reason is that by using an Intent, the app that actually posts the share is the Facebook app and not my own app.
So I probably have to use FacebookDialog to get this working, right?
If this is so, can I somehow still get the chooser? I still want the user to be able to select the service to share with.
I also know about App Links, does anyone know if using this would also solve the issue? Can links via App Links be referenced to the right app although they were shared with the Standard Facebook app?
The Facebook App Links documentation does not say much about sharing content from the app, only how to link from a website.
Since there's no app attribution available from a standard ACTION_SEND intent, Facebook will not know how to deep link into your app.
Using FacebookDialogs will give you app attribution, but will not address the chooser issue.
Using App Links is your best bet. It will tell Facebook how to deep link into your app (Facebook will scrape any link that is shared, so it will know about your App Links), and is a completely server side change, so you don't need to change any of your client code at all (assuming your client code already supports deep linking).

Categories

Resources