EddyVerbruggen / nativescript-plugin-firebase

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

application.start() or application.run() freezes the screen, is it safe to use application._start() ? #1853

Open samiul-gtmi opened 2 years ago

samiul-gtmi commented 2 years ago

I am working on a client's project, which is recently upgraded from ns5 to ns6 version, also it will be upgraded to v8 soon.

in ns5 version, every page/screen etc worked fine without any error, the project was starting at application.start() function. for example in here - application.start({ moduleName: "views/login/login" });

But after upgrading to v6, the using application.start() was problematic, because it was freezing the login screen, or I might say that it might be missing a frame from what I inspected, as a result it is not navigating to a page after login. So, I tried application.run() but no luck there. The problem remained the same.

However, I found some luck using application._start({ moduleName: "views/login/login" });. what I know is that, _start() should be a private function, so we shouldn't call it directly. This project will be upgraded to ns8 soon, so I'm really confused about what would be the best thing to do.

Kindly leave me your suggestions or solutions about the situation.