App does not recieve dynamicLinkReceived event after first launch on Ios. When app has been installed everything works correct.
For reference, my code for iOS
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread( task =>
{
var dependencyStatus = task.Result;
if ( dependencyStatus != DependencyStatus.Available )
{
Debug.LogError( "Could not resolve all Firebase dependencies: " + dependencyStatus );
return;
}
DynamicLinks.DynamicLinkReceived += dynamicLinkReceived;
});
On android everything works correct.
I found a similar problem , but this does not help me.
I guess something wrong with plist for ios.
PBXProject proj = new PBXProject();
string projPath = PBXProject.GetPBXProjectPath(buildPath);
proj.ReadFromFile( projPath );
string mainTarget = proj.GetUnityMainTargetGuid();
string plistPath = buildPath + "/Info.plist";
PlistDocument plist = new PlistDocument();
plist.ReadFromString( File.ReadAllText( plistPath ) );
PlistElementDict rootDict = plist.root;
rootDict.SetBoolean("FirebaseAppDelegateProxyEnabled", false);
var array = rootDict.CreateArray( "FirebaseDynamicLinksCustomDomains" );
array.AddString( "https://referral.myapp.mycompany.com" );
File.WriteAllText( plistPath, plist.WriteToString() );
Can somebody suggest how to fix it?
我们有同样的问题,您应该添加以“/”符号结尾的FirebaseDynamicLinksCustomDomains
字符串(对于没有前缀的链接)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.