unity-branch-deep-linking-attribution
unity-branch-deep-linking-attribution copied to clipboard
Firebase SDK is not working with Branch SDK. (ios only)
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
- Clone your project.
- Add Branch SDK
- Add Firebase SDK
- 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