EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 446 forks source link

Angular services stops working after app reload #1595

Open vytautas-pranskunas- opened 4 years ago

vytautas-pranskunas- commented 4 years ago

Hello, I have an app with firebase pushes. I am initializing it app.component.ts ngOnInit like totorial says. But here I have two problems:

  1. While developing, each time app recompile firebase init error promise is called with messages that firebase was already initialued
  2. Messages keeps comming but angular services stops working - I have some logic like tab switch, list refresh etc depending on pushed message so on first clean build everything works when messages comes but after first save messages keeps coming but services not called anymore.

I ask this in stackoverflow.com and cannot get any help.

Can someone help me? Can someone tell me how to initialize firebase plug-in properly without errors after rebuild?

i have recorder video since i cannot reproduce it in playground because of missing ns-firebase-plugin dependency

https://drive.google.com/file/d/1XJAlkABYGtbexQInpr7pb2k4YdHC1f1J/view

Thanks

jcassidyav commented 3 years ago

Did you ever get a solution to this problem? I am seeing the same thing.