Merge branch 'fix/jg_push' into 'release'

fix: 神策上报极光推送ID改为profileSet方法

See merge request halo/android/assistant-android!1980
This commit is contained in:
叶子维
2024-11-18 18:21:45 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -285,7 +285,7 @@ class SplashScreenActivity : BaseActivity() {
val pushProvider = ARouter.getInstance().build(RouteConsts.provider.push).navigation() as? IPushProvider
val registrationId = pushProvider?.getRegistrationId(this)
if (!registrationId.isNullOrEmpty()) {
SensorsBridge.profileAppend(KEY_REGISTRATION_ID, registrationId)
SensorsBridge.profileSet(KEY_REGISTRATION_ID, registrationId)
}
}

View File

@ -39,7 +39,7 @@ object JPushHelper {
// 绑定ID关系
@SuppressLint("CheckResult")
fun bindRegistrationId(registrationId: String?) {
SensorsBridge.profileAppend(KEY_REGISTRATION_ID, registrationId ?: "")
SensorsBridge.profileSet(KEY_REGISTRATION_ID, registrationId ?: "")
val appProvider = ARouter.getInstance().build(RouteConsts.provider.app).navigation() as? IAppProvider
val data = mapOf(