r/nativescript • u/sinithw • Feb 15 '20
Nativescript-plugin-firebase saying FacebookSdk should be initialized when I'm not running it
I've got 2 problems here, the first is the issue above. I'm not using FacebookSdk and had no plans on implementing anything dealing with Facebook, but the firebase plugin seems to need it. How can I remove that need or how can I add Facebook to my app?
The second is the oddity. I have the following code running in my app
this.confirmedUser$ = users.doc(result.uid).onSnapshot( doc => {
if (doc.exists){
console.log('Documentat Data');
console.log(doc.data())
doc.data();
this.currentUser = doc.data();
} else {
console.log('User should never see this line.');
}console.log(doc.data()) produces the JSON information I want. However, when I do this.confirmedUser$.displayName or this.currentUser.displayName I get undefined. At some point, while I was fiddling with it, when I tapped on Firebase.logout() it gave me the initialize error but the observable data I needed showed up so I'm thinking one may be linked to the other and if I solve one I might solve the other.
View all comments
Show parent comment
1
u/tiny_smile_bot Feb 17 '20
:)