Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Deep Link on Android and IOs with FireBase dont work correctly

Discussion in 'General Discussion' started by jme88Cirsa, May 28, 2020.

  1. jme88Cirsa

    jme88Cirsa

    Joined:
    Apr 9, 2019
    Posts:
    1
    Hello every one!

    I'm trying to implement Deep link on Unity for Android and iOS but i have some problems with this.

    I try to use Firebase to create Deep Link and Firebase SDK on Unity to receive the information from the url to promotional codes.

    In my main class on the Start function i register the event:

    DynamicLinks.DynamicLinkReceived += OnDynamicLink;

    to call this function:

    void OnDynamicLink(object sender, EventArgs args)
    {
    var dynamicLinkEventArgs = args as ReceivedDynamicLinkEventArgs;
    Debug.LogFormat("Received dynamic link {0}",
    dynamicLinkEventArgs.ReceivedDynamicLink.Url.OriginalString);
    }


    The app open correctly when user copy the Deep Link in the default browser on the mobile and Unity app take correctly the url parameters information, but when i open the Deep Link from Facebook or Google Chrome, the app dont open correctly.

    Someone know what is the problem?
     
unityunity