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:
- Register app – done
- Download config file – done
- Add Firebase SDK – skipped because sdkbox already done this
- Add initialization code – skipped
- 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:
- Register app – done
- Download config file – done
- Add Firebase SDK – done
- 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).