unity-branch-deep-linking-attribution icon indicating copy to clipboard operation
unity-branch-deep-linking-attribution copied to clipboard

Firebase SDK is not working with Branch SDK. (ios only)

Open ForJobOk opened this issue 10 months ago • 0 comments

Describe the bug

I tried using Branch Unity SDK with FirebaseSDK, but firebase dynamic links can not receive callback.

void Start()
{
    if (Application.isEditor) return;
    DynamicLinks.DynamicLinkReceived += (sender, eventArgs) =>
    {
        var link = eventArgs?.ReceivedDynamicLink.Url.OriginalString;
        Debug.Log("FDL: " + link);
    };
    
    Branch.initSession(CallbackWithBranchUniversalObject);
}

private void CallbackWithBranchUniversalObject(
    BranchUniversalObject buo,
    BranchLinkProperties linkProps,
    string error)
{
    if (error != null)
    {
        Debug.LogError("Error on CallbackWithBranchUniversalObject: " + error);
    }
    
    Debug.Log("Branch: " + buo.ToJsonString());
}

I predicted that our project is wrong or conflict some functions, but reproduced on your sample repository.

When I do comment out IMPL_APP_CONTROLLER_SUBCLASS in BranchAppController.mm, correctly woking firebase dynamic links. Of course, in case of that, not working Branch's Quick Links.

How can I use those in a same unity project?

verison info

  • Branch SDK 1.0.0
  • Unity 2022.3.3f1
  • Firebase SDK 11.0.0
  • ios 17.4.1

Steps to reproduce

  1. Clone your project.
  2. Add Branch SDK
  3. Add Firebase SDK
  4. Build

Expected behavior

Receive a velue on lunch an app at Firebase and Branch.

SDK Version

1.0.0

Unity Version

2022.3.3f1

Make and Model

iPhone14

OS

ios 17.4.1

Additional Information/Context

No response

ForJobOk avatar Apr 20 '24 08:04 ForJobOk