Integration of Firebase Crashlytics in Cocos2d-X engine

Integration of Firebase Crashlytics in Cocos2d-X engine
0

#1

I am looking for some help to integrate Firebase Crashlytics in my Android game developed using Cocos2D-X engine. I am already using Firebase Analytics using a plugin from SDKBOX. Now, I want to use the Crashlytics services.

  1. Are there any good tutorials on this topic?

  2. Is it possible to use the automatic crash reporting service from Firebase?

  3. What are the steps to integrate the Firebase crashlytics?

I would appreciate any suggestions and thoughts on this topic. Thank you.


#2

Follow the steps provided in Fabric Crashlytics installing page.


#3

Thank you for the reply. Though, Fabric crashlytics and Firebase crashlytics are the same but their Android setup process is slightly different. In Firebase crashlytics setup process we don’t need to mention any API key, which is not the case in Fabric crashlytics.

Hence, I looking for someone who installed crashlytics solution recently.


#4

So, haven’t you followed the steps in firebase crashlytics page then? Didn’t that work?


#5

Does firebase crashlytics support C++/NDK crashes?


#6

Removed from cocos2d-x build.gradle: compile project(’:gps’)


#7

firebase crashlytics supported C++/NDK crashes

1.) AdroidMainfest.xml add

<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false" />

2)AppActivity.java add
Fabric.with(this, new Crashlytics(), new CrashlyticsNdk());
3)gradlew crashlyticsUploadSymbolsRelease


#8

Yes, it is. Here our helper class for Android/iOS https://github.com/EMALLStudio/cocos2dx-crashlytics-sdk/tree/master/crashlytics-sdk


#9

wow that cool, I was all the time trying in tegrate it thru c++ but it always had some issues. can u share some of your use sceanrios/code samples?

p.s.

meanwhile I don’t recommending to connect firebase to crashlytics - because it grabbing all users from google play console and givign to all of them accces to firebase and switching on for all users all possible notifications which will spam email


#10

yep, i will add example project next week


#11

does firebase crashlytics support iOS native crashes ?


#12

yes, it is works. But if you send a lot of logs (about 5-10 per second) it possible to freeze your game. We are sending all debug log on android and only asserts and errors on iOS.


#13

Sorry for the delayed response. I’ve added example project - https://github.com/EMALLStudio/cocos2dx-crashlytics-sdk/tree/master/example_project


#14

Thanks! Will have a look!

BTW did u also had issue when connected firebase to crahdlytics, that it took all users from google play console and added them access to firebase and then switched notifications on for all of them?


#15

no, but our users from google play console already has access to firebase console


#16

someone with com.dandy83ten.sample sends crashlogs to my console =)
You should replace io.fabric.ApiKey in AndroidManifest.xml (and APIKey in Info.plist for iOS)


#17

Haha:) its not me yet:) probBly change in git you sdk key otherwise u will get a lot of this new apps


#18

LOL, you maybe better to set a invalid or test ID with your example.