UMCrash.registerUMCrashCallback发生Crash没有触发回调
Zzen***@hellobike.com
发布于 2 年前
180来自上海移动统计 U-App
子线程初始化友盟,并且UMCrash注册registerUMCrashCallback,真实场景发生Crash,registerUMCrashCallback并没有回调
try {
MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.LEGACY_AUTO)
configUm()
val customInfo = Bundle()
customInfo.putBoolean("mCallNativeDefaultHandler", true)
CrashApi.getInstance().updateCustomInfo(customInfo)
umengEnabled = true
setUMengUserProfile()
HuskyAPM.onUmengApmReady()
UMCrash.registerUMCrashCallback {
Log.d("UMCrash","clientId:" + ClientIdUtils.get(context))
"clientId:"+ ClientIdUtils.get(context)
}
} catch (e: Exception) {
e.printStackTrace()
}