Code Monkey home page Code Monkey logo

titanium-crashlytics's Introduction

Crashlytics in Appcelerator Titanium

Use the native Fabric Crashlytics iOS / Android SDK in Appcelerator Titanium.

Supporting this effort

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!

Requirements

  • iOS: Titanium SDK 8.0.0+
  • Android: Titanium SDK 7.0.0+

Setup

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.

Breaking changes!

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!

iOS

  1. Create a new folder scripts/ in your project root

  2. Copy the run and upload-symbols shell files from this repo's helper/ directory to scripts/ in your project

  3. Make sure your Firebase project is configured properly and you have your GoogleService-Info.plist in place, as described here.

  4. You are ready to go!

Android

var crash = require("ti.crashlytics");
crash.crash();  // test crash
  1. 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" />
  1. You are ready to go!

Example

See the Sample App for an example of configuring the required API keys and project settings.

API's

Cross platform API's

log(message)

Log a Custom Event to see user actions that are uniquely important for your app in real-time.

setUserIdentifier(userIdentifier)

Specify a user identifier which will be visible in the Crashlytics UI.

Android only API's

crash()

Simulate a crash (for testing purpose)

throwException()

Simulate an exception (for testing purpose)

setUserName(userName)

Specify a user name which will be visible in the Crashlytics UI.

setUserEmail(userEmail)

Specify a user email which will be visible in the Crashlytics UI.

Author

Hans Knöchel (@hansemannnn / Web)

License

MIT

Contributing

Code contributions are greatly appreciated, please submit a new Pull-Request!

titanium-crashlytics's People

Contributors

hansemannn avatar m1ga avatar bduyng avatar petenathan42 avatar rlustemberg avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.