适用于Unity的Firebase SDK使用动态链接

时间:2016-11-15 18:10:35

标签: android unity3d firebase firebase-dynamic-links

是否有人尝试使用适用于Unity的新Firebase SDK(https://firebase.google.com/docs/unity/setup)?当我尝试集成动态链接功能时,它会在有邀请时崩溃应用程序。

我创建了一个全新的项目,其中Android的最小设置(https://firebase.google.com/docs/dynamic-links/unity)可以为我的项目添加动态链接。当应用程序在没有邀请的情况下启动时,它就会正常启动。但是,当应用程序通过邀请(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)

1 个答案:

答案 0 :(得分:1)

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