Adding Firebase in cocos2d-x 3.17.2 project with sdkbox (v2.5.1.2 firebase)

Since google does not accept the event logs from the old google analytics library,

I had to install google analytics for firebase with sdkbox.

$ sdkbox import firebase

To use firebase, I logged in with my google user and created a new project with the old google analytics user.

For the iOS app integration, I created an iOS app in the firebase project and followed the instruction as following:

  1. Register app – done
  2. Download config file – done
  3. Add Firebase SDK – skipped because sdkbox already done this
  4. Add initialization code – skipped
  5. Run your app to verify installation – later

For the Android app integration, I created an Android app in the firebase project and followed the instruction as following:

  1. Register app – done
  2. Download config file – done
  3. Add Firebase SDK – done
  4. Run your app to verify installation – later

Now added the initialization code in AppDelegate::applicationDidFinishLaunching() and run the application to verify the installation as above.

If the verification fails, retry after removing the app from the device (simulator).