Comments (4)
By chance did you initialize the firebase app ?
from firebase.
I added the following import:
import '@nativescript/firebase-auth'; // only needs to be imported 1x
and I am calling firebase().auth()
to get the auth instance.
Actually this should be enough right? On Android this seems to work as expected.
Full sample app can be found here:
ns-firebase-auth.zip
By the way, I am still struggeling with other firebase auth methods on iOS as well:
firebase().auth().createUserWithEmailAndPassword("[email protected]", "password")
gives the following error:
TypeError: Cannot read property 'createUserWithEmailPasswordCompletion' of null
firebase().sendPasswordResetEmail("[email protected]")
gives the following error:
Cannot read property 'sendPasswordResetWithEmailCompletion' of null
On Android, this methods are working as expected.
from firebase.
Did you call the following?
import { firebase } from '@nativescript/firebase-core'
const defaultApp = firebase().initializeApp(); // u can assign it to a variable if needed
from firebase.
Ahh...... Indeed I forgot that. Not sure why it has worked on Android then, but on iOS I have to call it :)
Thank you!!
from firebase.
Related Issues (20)
- firebase().ui().show crashes on Android with Error: Cannot read properties of undefined (reading 'launch') HOT 1
- @nativescript/firebase-auth and @nativescript/firebase-ui are incompatible on iOS HOT 3
- 'No APNS token specified' error getting token on iOS HOT 20
- [Android] dlopen failed: library "libNativeScript.so" not found HOT 5
- Android warning on App Check HOT 1
- [iOS][auth] Firebase App Check support for Firebase Authentication (Update firebase authentication to >10.8.0)
- With FirebaseAppDelegateProxyEnabled = false, phone authentication hangs and then crashes HOT 1
- `const admin = require('firebase-admin')` crashes with `TypeError: Cannot read properties of undefined (reading 'env')` HOT 3
- Displaying alert after canceling from firebase().ui().show() causes exception HOT 2
- [firebase-crashlytics] Fatal errors aren't sent to Firebase console HOT 2
- [Firebase-storage][Android] Error: An unknown error occurred, please check the HTTP result code and inner exception for server response. HOT 1
- Migrating from legacy FCM APIs to HTTP v1 HOT 3
- [firebase-crashlytics AND firebase-messaging] iOS app crashes upon launch HOT 6
- Expost remove listeners for firebase messaging
- Support for new version of Firebase HOT 6
- Error calling setConsent() in the last version. HOT 1
- [firebase 3.2.x] Android "default FirebaseApp is not initialized" HOT 1
- Foreground and background notifications OK, but what about when the app is killed?
- firebase["ServerValue"].TIMESTAMP how do we use this in a new library HOT 1
- iOS build fails with "value of optional type ... must be unwrapped" error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase.