[Bug] Dynamic Links iOS error: "Deep Link does not contain valid required params"

See original GitHub issue

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.3.22f1
  • Firebase Unity SDK version: 8.7.0
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: Dynamic Links
  • Other Firebase Components in use: None
  • Additional SDKs you are using: N / A
  • Platform you are using the Unity editor on: Windows, Linux, and Mac (I have CI using all 3 daily)
  • Platform you are targeting: iOS, Android, and Desktop
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

I’m using Firebase Dynamic Links for Unity, and I’ve got it working well with Android. I’ve even got a solution for Desktop, where the fallback link takes users to a webpage where I can provide instructions to the user for how to get their link content on Desktop.

On iOS, however, I always get errors showing up in the Xcode logs whenever I test dynamic links on iOS, saying “Deep Link does not contain valid required params”. I also don’t get any log that should immediately happen whenever a dynamic link is received. I’ll put the error and code below.

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? N / A What’s the issue repro rate? 100%

This is the full error that appears when an iOS user clicks on https://cgs.link/zu_tiles_hime:

[Firebase/Analytics][I-ACS023001] Deep Link does not contain valid required params. URL params: {
    "_cpb" = 1;
    "_cpt" = cpit;
    "_fpb" = "CIAIEIAGGgVlbi11cw==";
    "_iipp" = 1;
    "_iumchkactval" = 1;
    "_iumenbl" = 1;
    "_osl" = "https://cgs.link/zu_tiles_hime?_iipp=1";
    "_plt" = 260;
    "_uit" = 1064;
    apn = "com.finoldigital.cardgamesim";
    cid = 8062347334713659136;
    ibi = "com.finoldigital.CardGameSim";
    isi = 1392877362;
    link = "https://www.cardgamesimulator.com/link%%3Furl%%3Dhttps://www.cardgamesimulator.com/games/zu_tiles_hime/zu_tiles_hime.json";
    sd = "Play Zu Tile: Hime on CGS!";
    si = "https://www.cardgamesimulator.com/games/zu_tiles_hime/Banner.png";
    st = "Card Game Simulator - Zu Tiles: Hime";
}

Relevant Code:

        private void Start()
        {
            FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
            {
                var dependencyStatus = task.Result;
                if (dependencyStatus != DependencyStatus.Available)
                {
                    Debug.LogError("Could not resolve all Firebase dependencies: " + dependencyStatus);
                    return;
                }
                DynamicLinks.DynamicLinkReceived += OnDynamicLinkReceived;
            });
        }
        private void OnDynamicLinkReceived(object sender, EventArgs args)
        {
            Debug.Log("Dynamic Link Received!");
...

EDIT:

Additional Context:

I’ve actually been able to get it somewhat working on iOS by replacing DynamicLinks.DynamicLinkReceived += OnDynamicLinkReceived with Application.deepLinkActivated += OnDeepLinkActivated, but then that only works with long links since only the long link would provide the requisite information to Application.absoluteUrl. I really want to be able to keep shorts links like https://cgs.link/zu_tiles_hime without having to give long links to users. Luckily, if an iOS user types this short link into a web browser, they get sent to a preview page, and that preview page has a button that uses the long link, which works. Ideally, though, that iOS user should be able to just click on the short link without having to type it into a web browser. I’d really appreciate any help with figuring this out!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
paulinoncommented, Jan 24, 2022

Thanks for the update, @davidmfinol. Unfortunately, Fastlane is beyond my scope of expertise.

I’ll be closing this for now. Feel free to reopen this ticket if you think the Firebase SDK is causing this issue.

0reactions
davidmfinolcommented, Jan 23, 2022

Further update: I had done the upload using fastlane, and I was considering that maybe fastlane messed something up during the submission process, so I resubmitted using the manual distribution process in Xcode. With that, the dynamic links now work fine, so I am assuming the issue is now somewhere in my fastlane build and delivery. I’ll keep playing around with fastlane to see where something could have gone wrong, but do you have any ideas or are you aware of any known issues with Firebase Dynamic Links + Fastlane? If not, I think this issue can be closed again after all, as I can continue to debug my fastlane on my own.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deep Link does not contain valid required params while ...
i have setup my dynamic link as a documentation but while clicking a link it shows : Deep Link does not contain valid...
Read more >
Deep Link does not contain valid required params. #9945
Debug your dynamic link as mentioned here and make sure that your link doesn't have any error or warning because it might affect...
Read more >
iOS : Deep Link does not contain valid required params while ...
iOS : Deep Link does not contain valid required params while clicking a dynamic link [ Beautify Your Computer ...
Read more >
Firebase Dynamic Links on Unity iOS says "Deep Link does ...
Coding example for the question Firebase Dynamic Links on Unity iOS says "Deep Link does not contain valid required params"
Read more >
[Resolve]-Deep Link does not contain valid required params
The issue I am having is that when I open one of the links I have created using the dynamiclinks sdk, I get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found