Closed amo222lpatil closed 6 years ago
On android I'm using:
TiSDK 7.2.0.GA firebase.core 2.2.0 firebase.auth 1.0.1 ti.playservices 11.0.40 hyperloop 3.0.5 Alloy project
index.js var Firebase = require('firebase.core'); Firebase.configure({file:"google-services.json"}); var FirebaseAuth = require('firebase.auth'); FirebaseAuth.signInWithEmail({ email : 'abc.xyx@pqr.com', password : '****', callback : function(e) { Titanium.API.trace("[index] >> in callback funtion "); if (!e.success) { Ti.API.error('Error: ' + e.error); return; } Ti.API.info('Success!'); Ti.API.info(e.user); } });
It gives error as [ERROR] : TiExceptionHandler: (main) [0,130] - Message: Uncaught Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference [ERROR] : TiExceptionHandler: (main) [0,130] - Source: FirebaseAuth.signInWithEmail({ [ERROR] : V8Exception: Exception occurred at /alloy/controllers/index.js:81: Uncaught Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference [ERROR] : V8Exception: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference
when i try on android device.
Missing environment, example code and any other notes. This is not how issues work, sorry.
On android I'm using:
TiSDK 7.2.0.GA firebase.core 2.2.0 firebase.auth 1.0.1 ti.playservices 11.0.40 hyperloop 3.0.5 Alloy project
index.js var Firebase = require('firebase.core'); Firebase.configure({file:"google-services.json"}); var FirebaseAuth = require('firebase.auth'); FirebaseAuth.signInWithEmail({ email : 'abc.xyx@pqr.com', password : '****', callback : function(e) { Titanium.API.trace("[index] >> in callback funtion "); if (!e.success) { Ti.API.error('Error: ' + e.error); return; } Ti.API.info('Success!'); Ti.API.info(e.user); } });
It gives error as [ERROR] : TiExceptionHandler: (main) [0,130] - Message: Uncaught Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference [ERROR] : TiExceptionHandler: (main) [0,130] - Source: FirebaseAuth.signInWithEmail({ [ERROR] : V8Exception: Exception occurred at /alloy/controllers/index.js:81: Uncaught Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference [ERROR] : V8Exception: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.signInWithEmailAndPassword(java.lang.String, java.lang.String)' on a null object reference
when i try on android device.