简体   繁体   中英

Firebase Analytics not working when IPA is compiled

Whenever we are running using a simulator, or a device that is connected to XCode, we can see that the events are firing up.

But whenever we compile it to an IPA and check if the events are working, nothing is showing up.

I've already checked the package contents of the generated .app file and I saw that it is indeed using the bundle ID that I use for the app being run in the simulator.

What could be the problem? It only happens when we compile the app.

Short answer:

Data is uploaded when:

  • Data is >1 hour old
  • Conversion event triggered
  • App goes to the background

==================================================================================

Explanation:

In order to save user's device battery, in Production Mode Google Analytics for Firebase only sends data down if one of the following cases occur:

  • You got data that's been sitting around for more than an hour
  • The user triggers a conversion event (payment)
  • Your app goes into the background

Only in Debug Mode the events are sent down nearly right away to the Firebase Console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM