Use the native Fabric Crashlytics iOS / Android SDK in Appcelerator Titanium.
The whole Firebase support in Titanium is developed and maintained by the community (@hansemannn
and @m1ga
). To keep
this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository,
thank you!
- iOS: Titanium SDK 8.0.0+
- Android: Titanium SDK 7.0.0+
In general, remember to not use any Crashlytics API's before actually opening your first window. While this might not result
in a crash on iOS, the native Android SDK will error if being used before your app finished launching due to requiring the
native Activity
.
Module version 2.0.0 uses Firebase Crashlytics instead of the (deprecated) Fabric Crashlytics. Please make sure to check the removed and changed API's!
-
Create a new folder
scripts/
in your project root -
Copy the
run
andupload-symbols
shell files from this repo'shelper/
directory toscripts/
in your project -
Make sure your Firebase project is configured properly and you have your
GoogleService-Info.plist
in place, as described here. -
You are ready to go!
var crash = require("ti.crashlytics");
crash.crash(); // test crash
- Add the following to the
<application>
tag inside the manifest configuration in your tiapp.xml:
<meta-data android:name="io.fabric.ApiKey" android:value="YOUR_API_KEY" />
- You are ready to go!
See the Sample App for an example of configuring the required API keys and project settings.
Log a Custom Event to see user actions that are uniquely important for your app in real-time.
Specify a user identifier which will be visible in the Crashlytics UI.
Simulate a crash (for testing purpose)
Simulate an exception (for testing purpose)
Specify a user name which will be visible in the Crashlytics UI.
Specify a user email which will be visible in the Crashlytics UI.
Hans Knöchel (@hansemannnn / Web)
MIT
Code contributions are greatly appreciated, please submit a new Pull-Request!