Does turning off FireBase swizzling affect analytics besides push receipts?

我只是一个虾纸丫 提交于 2020-01-06 03:37:25

问题


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:


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.



来源:https://stackoverflow.com/questions/38985061/does-turning-off-firebase-swizzling-affect-analytics-besides-push-receipts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!