Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Nativescript app is not running with Firebase in IOS. #292

Closed
Vo0Do0 opened this issue Feb 20, 2017 · 3 comments
Closed

Nativescript app is not running with Firebase in IOS. #292

Vo0Do0 opened this issue Feb 20, 2017 · 3 comments

Comments

@Vo0Do0
Copy link

Vo0Do0 commented Feb 20, 2017

Hi,

I have integrated Firebase plugin with my nativescript app. I followed the instructions mentioned Here. In android it is working fine but in IOS, it is building fine but while running it is giving error like the following.

CONSOLE LOG file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:1165:18: Error in firebase.addChildEventListener: TypeError: null is not an object (evaluating 'firebase.instance.childByAppendingPath')
CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3491:32: EXCEPTION: Uncaught (in promise): TypeError: null is not an object (evaluating 'firebase.instance.childByAppendingPath')
CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3496:36: ORIGINAL STACKTRACE:
CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3497:36: resolvePromise@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:416:40
file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:393:27
file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:1166:13
ZoneAwarePromise@file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:465:37
addValueEventListener@file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:1144:21
file:///app/shared/firebase-feed.service.js:24:43
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:37
connect@file:///app/tns_modules/rxjs/observable/ConnectableObservable.js:37:27
call@file:///app/tns_modules/rxjs/observable/ConnectableObservable.js:101:56
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
getFeedItems@file:///app/shared/question/question.component.js:32:23
ngOnInit@file:///app/shared/question/question.component.js:43:26
ngDoCheck
detectChangesInternal

Any help will be appretiated.

Thanks,

Soumen.

@anuragd7
Copy link

+1

@anuragd7
Copy link

Hi,
I am also not able to run my ios project. The project runs fine in android but gives an error

Error in firebase.addChildEventListener: TypeError: null is not an object (evaluating 'firebase.instance.childByAppendingPath')

@EddyVerbruggen - Is there any fix for this?

Thanks

@EddyVerbruggen
Copy link
Owner

Thanks for reporting. Closing as a dupe of #272. I'm going to post the proposed fix for that one shortly (version 3.10.2).

@EddyVerbruggen EddyVerbruggen added this to the 3.10.2 milestone Mar 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants