I had a same problem and i want help you. Firebase was setup in my project already.
I use Unity and build app on android and ios. Android is work, but ios is big problem.
You should check this:
add associated domain:
private static void AddAssociatedDomains(string path)
{
//This is the default path to the default pbxproj file. Yours might be different
string projectPath = "/Unity-iPhone.xcodeproj/project.pbxproj";
//Default target name. Yours might be different
string targetName = "Unity-iPhone";
//Set the entitlements file name to what you want but make sure it has this extension
string entitlementsFileName = "my_app.entitlements";
var entitlements = new ProjectCapabilityManager(path + projectPath, entitlementsFileName, targetName);
entitlements.AddAssociatedDomains(new string[] { "applinks:example.com/link" });
//Apply
entitlements.WriteToFile();
}
your domain's place in firebase console - dynamic links - left top corner blue font. whithout https:/// path in method is path of "Info.plist"
- this have to been in info.plist
<key>FirebaseDynamicLinksCustomDomains</key>
<array>
<string>https://example.com/link</string>
</array>
in Unity you can do this in this way:
private static void AddFirebaseDynamicLincsInfo(PlistDocument plist)
{
var customDomains = plist.root.CreateArray("FirebaseDynamicLinksCustomDomains");
customDomains.AddString("https://example.com/link>");
}
- if you use appsflyer, it is problem) they are conflicted. You should find file AppsFlyerAppController.mm in your unity project and paste this string
[super application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
It must like be this:
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler {
[super application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
[[AppsFlyerAttribution shared] continueUserActivity:userActivity restorationHandler:restorationHandler];
return YES;
}