Setting up deep linking in a [NuxtJS capacitor vue] app - ios

I'm trying to get deep linking setup in the app I'm working on. I have Firebase Dynamic Link that takes me to the app store page but it will not open the app in local development for ios.
I would like to get this link to open the app if a user has it installed. I seem to have no luck in finding documentation that uses nuxt and capacitor with firebase dynamic links. I have been seeing a lot of swift code for dynamic linking but I am not sure if we can use the swift code since it is being generated by capacitor. I have gone through all the xcode settings to allow for deep links.
Edit: The app opens up currently but I am now confused in how to catch the dynamic links to use for routing.

Related

Firebase dynamic link always goes to ios app store even if app installed

I have a dynamic link that is working fine on Android however I can't get the App Store redirect behaviour working correctly on iOS.
If I set up the dynamic link to go to a url (not the app store) if the app is not installed it works as expected and opens the app. This is the dynamic link:
https://go.xxxxx.app/?link=https://member.xxxxx.app&apn=app.xxxxx.xxxxx&isi=1573527302&ibi=app.xxxxx.xxxxx&ifl=https://member.xxxxx.app&efr=1
However if I set it to go to the app store if the app is not installed it ALWAYS goes to the app store, even if the app is installed.
https://go.xxxxx.app/?link=https://member.xxxxx.app&apn=app.xxxxx.xxxxx&isi=1573527302&ibi=app.xxxxx.xxxxx&efr=1
I am obviously doing something wrong or misunderstand the relationship between deep links and dynamic links. "go" is my dynamic link subdomain and "member" is my deep link subdomain.
I realise there are several other questions on this but none of the answers helped me.
Other info
I am using a physical iPhone 8 with iOS 15.4.1
This is my deeplink which works fine if I click the url on my device:
https://member.xxxxx.app
I have an app association file set up here:
https://member.xxxxx.app/.well-known/apple-app-site-association
I also set it here as I wasn't sure whether to set it up for the dynamic link as well:
https://go.xxxxx.app/.well-known/apple-app-site-association
I have the following Associated Domain set up in Xcode:
applinks:member.xxxxx.app
Note that I have not added the associated domain applinks:go.xxxxx.app as this just seemed to make the dynamic link be treated like a deeplink.
I have the capability associated domains turned on in my Apple Developer identifier.
My app is published to the app store but not the latest version of the app with the associated domain member.xxxxx.app.
I have added my app and team id to Firebase on the ios app.
I have "Associated Domains Development" turned on in the developer settings of my iPhone.
I added FirebaseDynamicLinksCustomDomains in my info.plist as mentioned here:
https://firebase.google.com/docs/dynamic-links/custom-domains#set_up_a_custom_domain_in_the
It appears I needed to add applinks:go.xxxxx.app to the Associated domains as well. I can't test from the App Store if the link parameter works I guess I will have to wait until I release to the store.
So the dynamic link is also a deep link that contains another deep link.
Kind of confusing. If anyone can add some more info or explanation that would be great.
I will leave the question here for now as it may help people.
I have the following Associated Domain set up in Xcode: applinks:member.xxxxx.app Note that I have not added the associated domain applinks:go.xxxxx.app as this just seemed to make the dynamic link be treated like a deeplink.
Edit:
To get the dynamic link working in iOS see my answer here:
Firebase short dynamic link not working in iOS (being treated as a deeplink)

DynamicLinks not working on first open React Native

I have my project in React Native (v0.62.2), and I am using Firebase Dynamic Links (v^12.0.0). I have configured it all as the documentation indicates, but I have a problem:
In iOS, if I use an external dynamic link (such as https://myapp.page.link/ref_TEST) works only if the app is previously downloaded from AppStore. Otherwise, if the app is not downloaded, this link will redirect me to AppStore to download it. But when I open the app after download, I will lose the dynamic link.
Does anyone have a clue about this? I searched a lot, and there are people having this problem but didn't found a solution to it.
Thanks!

iOS Deep linking: open app after installing from app store

I am trying to implement a feature like in this question Android Deep linking: Use the same link for the app and the play store but for iOS app.
Currently, my app uses UniversalLink(example: https://www.example/com/code/000000), and if the app doesn't install server redirect to the App Store by link (https://apps.apple.com/us/app/instagram/id389801252 - for example)
but how then after installation open link inside the app?
From this info https://support.google.com/authorizedbuyers/answer/6167336?hl=en
I understand that need some reference like (https://apps.apple.com/us/app/instagram/id389801252?mt=000000) what is ?mt=0000 <- this is deep link or something else?
How to implement this algorithm

Firebase iOS is not opening my app from Safari

I tested the dynamic links Firebase. Configured everything in the project, the implementation did exactly like the Google documentation and created links on the console. When I test in Safari it does not open the application.
Thank you
iOS 9+
Due to the limitations on the iOS platform, Firebase Dynamic Links must rely on Apple's Universal Link system to open the app directly from a link when it is installed. One of the constraints placed on Universal Links is that the app-open behavior is only triggered from a user's click and not by a redirect or copy/paste into Safari.
We have found it very challenging to test Universal Links in the simulator and pretty much always use a real device for this type of thing. Basic steps: install app > SMS link to your test device > click link > observe app open.
iOS 8 and prior
iOS versions prior to 9 handle opening the app from a Dynamic Link through Safari, so if the app is not opening when you copy/paste the link into Safari then some setup is incomplete. Please review your Firebase project for information and confirm that your bundle IDs/custom schemes match on the project page, in your link, and in your app; be sure that the bundle ID is listed in URL Types in your Xcode project setup along with any custom scheme you wish to use.
Other Info
Here is a link to a prior answer that may be helpful as well.
Firebase dynamic link not opening the app iOS

Google app invites on iOS deep link only opens app store

I am working on adding Google App Invites deep linking to an iOS app and I followed all the steps for Adding App invites to iOS but the deep link just opens the app store to my app page even if the app is installed.
To recap, I...
Installed the Cocoapod
Generated and added the config file using the appropriate app store ID and bundle ID
Included the code for application:openURL:... and didFinishLaunchingWithOptions:
Added the URL Scheme for google and inputted the REVERSED_CLIENT_ID
I'm not sure how to debug this considering I did all that Google told me to do. Their only help link on the Google Developers site was to Stack Overflow. Has anyone tried implementing these deep links on iOS and succeeded?
EDIT: This was done using iOS 8.x. #Caio pointed out the problem still persists on iOS 9 but not on iOS 7.x.
We need to set the value "applinks:{your_app_link}.app.goo.gl" to Associated Domains on Capabilities tab of Xcode.

Resources