除了推送收据之外,关闭 FireBase 调配是否会影响分析?

Does turning off FireBase swizzling affect analytics besides push receipts?

Firebase cloud messaging documentation says that they swizzle some methods in order to get a push notification token and log receiving a push notification. In the FIRAnalytics documentation,一些事件名称是保留的(见下logEventName:parameters:),包括in_app_purchase。这表明 Firebase 会自动将应用内购买记录到他们的分析中,这似乎很难在不进行 swizzling 的情况下自动完成。

Firebase 是否为了使用这些保留关键字而进行调整?如果是这样,是否通过 FirebaseAppDelegateProxyEnabled 关闭 swizzling 会禁用这些分析?

否,将 FirebaseAppDelegateProxyEnabled 设置为“否”将仅禁用 App Delegate 方法的调配。它不会影响应用内购买事件,因为 Analytics 不会从您的 App Delegate 获取应用内购买事件。如 documentation 中所述,唯一会影响分析的是通过打开带有 URLs/Universal 链接的应用程序的活动事件。如果您决定关闭它,同时您仍然希望支持竞选活动,建议添加文档中描述的方法。