Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

hansemannn/titanium-firebase-crash-reporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Crash Reporting - Titanium Module

Use the native Firebase SDK in Axway Titanium. This repository is part of the Titanium Firebase project.

⚠️ This module has been deprecated in favor of the Ti.Crashlytics module which is the way to go and officially recommended by Google.

Requirements

Download

Setup

  • Download a service account key to authenticate your dsym-uploads. From the Firebase console, select your project, and then Generate New Private Key.
  • Place the downloaded .json in the root of your project folder and rename it to ServiceAccount.json.
  • Download the scripts/ folder from this repository and place it in the root of your project folder as well.
  • Create a file called titanium-firebase-script.sh inside scripts/.
#!/bin/bash

# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:xxx:ios:xxx

# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"<PATH TO YOUR PROJECT>/scripts/upload-sym" "<PATH TO YOUR PROJECT>/ServiceAccount.json"

API's

FirebaseCrashReporting

Methods

log(message)
  • message (String)

Properties

crashCollectionEnabled (Boolean, get/set)

Example

// Require the Firebase Crash Reporting module
var FirebaseCrashReporting = require('firebase.crashreporting');

// Log a crash to the Firebase console
FirebaseCrashReporting.log('Titanium rocks!');

// Determine if crash-collection is enabled, default: true
Ti.API.info('Crash-collection enabled: ' + FirebaseCrashReporting.crashCollectionEnabled);

// Toogle crash-collection
FirebaseCrashReporting.crashCollectionEnabled = false;

Build

cd ios
appc ti build -p ios --build-only

Legal

This module is Copyright (c) 2017-Present by Hans Knoechel. All Rights Reserved. Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.