Crash Detection via Crashlytics
At Skillz, we use Firebase Crashlytics for crash reporting. We recommend integrating Crashlytics with your game to identify bugs and crashes more efficiently.
This article will discuss how to integrate Crashlytics into your Skillz based game.
- Unity
- Godot/GDScript
- iOS
- Android
Unity​
Prerequisites​
You will be using Unity Firebase 11.8.0 to integrate Crashlytics.
Firebase Messaging and Dynamic Links​
Firebase Messaging and Dynamic Links are currently not supported with Skillz. Using either of these libraries will prevent push notifications and other Skillz SDK features from functioning correctly. Please keep in mind the Skillz SDK provides push notifications. As such you still need to include the Firebase Messaging libraries, the associated google-services.json file, and upload your Firebase server key to enable push notifications.
Instructions​
Please follow the official instructions.
Android​
Under Step 4: Build or run your project, the Exports to an Android Studio project subsection instructs you to verify your project structure.
However, you do not need to verify that the files listed under the libs/ section. This is because Skillz requires that you patch your mainTemplate.gradle when resolving dependencies, rather than downloading the resulting JARs/AARs.
your-export-directory/
build/
build.gradle
...
Firebase/ <- FIREBASE FOR UNITY
gradle/
gradle.properties
gradlew.bat
libs/ <- DISREGARD
com.google.android.gms.play-services*
com.crashlytics.sdk.android*
com.google.firebase.firebase-*
io.fabric.sdk.android.fabric*
...
src/
Finally, the section titled Run the resolver (optional) is misleading. Running the Google Play Services resolver is mandatory.
Godot​
The Skillz Godot package does not bundle Firebase Crashlytics; integrate it in the native projects Godot generates, following Firebase's native guides rather than the Unity one.
Android​
Follow the Android instructions in your project's android/build/ Gradle project. The Android build template persists between exports, and the Skillz export plugin only appends its own marked block to build.gradle, so your Crashlytics additions are kept. The Firebase app is the same one you configured for push notifications.
iOS​
Follow the iOS instructions. The Podfile is regenerated by the Skillz export plugin on every export, so add the Crashlytics pod after each export (or from a post-export script) before running pod install.
Firebase Messaging and Dynamic Links​
App-level Firebase Messaging and Dynamic Links libraries are currently not supported with Skillz. Using either of these libraries will prevent push notifications and other Skillz SDK features from functioning properly. Do not add a separate Firebase Messaging or Firebase Godot plugin: the Skillz SDK's built-in Firebase Cloud Messaging integration handles push notifications itself and remains required for them; follow the push notification setup.