Does turning off FireBase swizzling affect analyti

2019-07-26 12:11发布

The 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, some event names are reserved (see under logEventName:parameters:), including in_app_purchase. This suggests that Firebase is automatically logging in-app purchases to their analytics, which seems difficult to do automatically without swizzling.

Does Firebase swizzle in order to use these reserved keywords? If so, does turning off swizzling via FirebaseAppDelegateProxyEnabled disable these analytics?

1条回答
smile是对你的礼貌
2楼-- · 2019-07-26 12:57

No, setting FirebaseAppDelegateProxyEnabled to NO will disable the swizzling of the App Delegate methods only. It will not affect in app purchase events since Analytics does not get in app purchase events from your App Delegate. As mentioned in the documentation, the only thing that will affect Analytics is campaign events through opening app with URLs/Universal Links. If you decide to turn it off while you still want support for campaign events, it is recommended to add the methods as described in the documentation.

查看更多
登录 后发表回答