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.
- The Firebase Core module
- Titanium SDK 6.3.0 or later
- 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 toServiceAccount.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
insidescripts/
.
#!/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"
message
(String)
// 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;
cd ios
appc ti build -p ios --build-only
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.