Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Example
Octocat-spinner-32 Module
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
README.md

Native Titanium Module for HockeyApp and Android Apps.

Installation

  1. Copy the file Module/dist/hockeystick-android-1.0.1.zip into your project directory.
  2. Add the following line to the modules element of your tiapp.xml:

    <module platform="android" version="1.0.1">hockeystick</module>
    
  3. Open your apps.js and initialize the module:

    var Stick = require('hockeystick');
    Stick.registerManager("APP_ID");
    
  4. Replace APP_ID with your App ID on HockeyApp.

Usage

  1. Add the following line to all files in which you want to catch exceptions:

    var Stick = require('hockeystick');
    
  2. Create try-catch-blocks like this:

    try {
      // Your code
    }
    catch (e) {
      Stick.reportCrash(e.stack);
      Stick.sendCrashes();
    }
    

    The first line saves the exception as a file. The second line send all crash files to HockeyApp (it can be omitted and instead called only once per app start, e.g. in app.js or in a settings view).

Support

If you have any questions, problems or suggestions, please contact us at support@hockeyapp.net.

Something went wrong with that request. Please try again.