nativescript-plugin-firebase icon indicating copy to clipboard operation
nativescript-plugin-firebase copied to clipboard

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

Open samiul-gtmi opened this issue 4 years ago • 0 comments

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.

samiul-gtmi avatar Oct 19 '21 02:10 samiul-gtmi