适用于 Unity 的 Firebase SDK 使用 Dynamic Link 使应用程序崩溃

Firebase SDK for Unity crashes app with Dynamic Link

有没有人尝试过新的 Firebase SDK for Unity (https://firebase.google.com/docs/unity/setup)?当我尝试集成动态 Link 功能时,当有邀请时应用程序崩溃。

我已经为 Android 创建了一个具有最小设置 (https://firebase.google.com/docs/dynamic-links/unity) 的全新项目,以便将 Dynamic link 添加到我的项目中。当应用程序在没有邀请的情况下启动时,它开始正常。但是当应用程序通过邀请 (https://.app.goo.gl/?link=http://&apn=) 启动时,它会崩溃并出现以下错误:

11-15 09:46:00.929 16329-16329/com.my.app D/firebase: (InvitesClass) getInvitation:onResult:Status{statusCode=SUCCESS, resolution=null}
11-15 09:46:00.929 16329-16329/com.my.app D/Unity: (InvitesClass) getInvitation:onResult:Status{statusCode=SUCCESS, resolution=null}: 0 at ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp:42 (17408, 0, 0)
11-15 09:46:00.930 16329-16329/com.my.app I/Unity: (InvitesClass) getInvitation:onResult:Status{statusCode=SUCCESS, resolution=null}
 UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
 UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 UnityEngine.Logger:Log(LogType, Object)
 UnityEngine.Debug:Log(Object)
 Firebase.FirebaseHandler:LogMessage(LogLevel, String)

 (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)



--------- beginning of crash

11-15 09:46:00.937 16329-16329/com.my.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 16329 (irg.app)

发现是当前版本sdk(1.0.1)的bug: https://github.com/firebase/quickstart-unity/issues/11