Firebase Analytics-setUserProperty在“应用生命周期"中持续存在 [英] Firebase Analytics - setUserProperty persists through "app lifecycle"

查看:170
本文介绍了Firebase Analytics-setUserProperty在“应用生命周期"中持续存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FirebaseAnalytics上setUserProperty的文档指出,该属性在应用程序的整个生命周期和会话之间持续存在."

The documentation for the setUserProperty on FirebaseAnalytics states that the property "persists throughout the app lifecycle and across sessions."

应用生命周期"在这里到底是什么意思?这是否意味着直到用户卸载该应用程序或将强制终止该应用程序重置属性值?

What exactly does "app lifecycle" mean here? Does it mean until a user uninstalls the app or would force killing the app reset the property values?

推荐答案

这意味着一旦设置了用户属性,该值将一直保留到卸载该应用程序为止.关闭应用程序或通过从最近的应用程序列表中滑动来取消应用程序进程不会清除该值.

It means that once user property is set the value will be retained until the app is uninstalled. Closing the app or killing the app process by swiping it off the recent apps list will not clear the value.

还将用户属性设置为全局属性.这意味着从任何应用程序进程记录的数据都将具有与其关联的值.例如,如果您的应用程序正在运行后台进程,并且您在UI进程中设置了该值,则该值还将与从后台进程记录的所有事件相关联.

Also once user property is set its global. That means data logged from any of the app processes will have the value associated with it. For example if you have background process running for your app and you set the value from the UI process it will be associated with all events logged from the background process as well.

您可以使用另一个

You can change the user property value with another setUserProperty call. To clear the value call setUserProperty with null value.

这篇关于Firebase Analytics-setUserProperty在“应用生命周期"中持续存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆