quickstart-ios: Transaction failed

In my app, I am calling [FIRApp configure]; not exactly in application didFinishLaunchingWithOptions but early enough before anything else starts.

And when I look at the xcode console, it says:

<Notice>: <FIRAnalytics/INFO> Firebase Analytics v.3200000 started
<Notice>: <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
<Notice>: <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
<Notice>: <FIRAnalytics/INFO> Firebase Analytics enabled
<Notice>: Sandbox: myappname(2327) deny(1) file-write-create /private/var/mobile/Containers/Bundle/Application/FIREBASE_LAST_TIMESTAMP

Which seems good, accept for the last line which I don’t understand what it’s about!

The actual problem is the following error message which happens as soon as I click on a test Admob banner. When my app switches to Safari browser, Firebase throws this error. but this does not crash the app at all. everything seems normal.

<Error>: <FIRAnalytics/ERROR> Data loss. Cannot record raw event. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=3 "Database operation "execute statement" failed with sqlite code 20 and error message "could not convert floating point value to integer without loss of data."" UserInfo={FIRAMonitorContext=execute statement,20,A,3, NSLocalizedDescription=Database operation "execute statement" failed with sqlite code 20 and error message "could not convert floating point value to integer without loss of data."}
<Error>: <FIRAnalytics/ERROR> Transaction failed

Now, what this problem leads? in my Firebase console, I am not seeing reports! we have created two projects in our Firebase console, one for our Android app and another one for the iOS. We are able to see the analytic on the Android side but the iOS side still shows 0 monthly active users.

Please give us an advice on what could be the problem?

[FIRApp configure]; This method should be called after the app is launched and before using Firebase services.

NOTE: Because of some reasons, we can NOT call [FIRApp configure]; from application didFinishLaunchingWithOptions but we do call it a bit later. If this is the problem, which I don’t think it is because if it was, the console logs should have said so, what solution do we have?

Thanks a lot in advanced and we can’t wait to start developing using Firebase. It’s just so awesome.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20

Most upvoted comments

Good news: The fix has just been released in Firebase Analytics 3.7.0. Please upgrade to the latest version and let us know if it fixes this error. Thanks for reporting!

Awesome @baolocdo I can confirm that it works fine now 😃

@baolocdo Thanks for your update. We are totally looking forward to the other fix. You know, the whole Adobe AIR community is currently dependent on us to have this feature of the Firebase project available to them along with the other pieces. https://github.com/myflashlab/Firebase-ANE

I’m sure a lot AIR developers will be happy as soon as you fix the <FIRAnalytics/ERROR> Data loss issue 😃 Thanks.

Update: The bug regarding this <Notice>: Sandbox: myappname(2327) deny(1) file-write-create /private/var/mobile/Containers/Bundle/Application/FIREBASE_LAST_TIMESTAMP was fixed and should not show up in the latest release of Firebase Analytics. However, regarding Adobe Air support, we still have not released the fix yet due to some technical issues. Thanks for reporting.