Use the native Firebase SDK in Axway Titanium. This repository is part of the Titanium Firebase project.
- The Firebase Core module
- iOS: Titanium SDK 6.3.0+
- Android: Titanium SDK 7.0.0+
The Android version of this module is currently in development and should not be used in production so far!
- Android: Remove
firebase-common-11.0.4.aar
andplay-services-tasks-11.0.4.aar
from the build after building because they are part ofTi.PlayServices
andTitanium-Firebase-Core
already and will likely cause duplicate depencency errors! - Expose all iOS API's to Android
- For Android, use
fetchIDToken(forceRefresh, callback)
Virtual Type to be used in ``signInWithCredential. Create with
createCredential(parameters)`.
// Require the Firebase Auth module
var FirebaseAuth = require('firebase.auth');
FirebaseAuth.signInWithEmail({
email: '[email protected]',
password: 't1r0ck$!',
callback: function(e) {
if (!e.success) {
Ti.API.error('Error: ' + e.error);
return;
}
Ti.API.info('Success!');
Ti.API.info(e.user);
}
});
// More TBA
cd ios
appc ti build -p ios --build-only
This module is Copyright (c) 2017-Present by Appcelerator, Inc. All Rights Reserved. Usage of this module is subject to the Terms of Service agreement with Appcelerator, Inc.