You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our app, in APP_INITIALIZER function, we navigate to particular page based on user login or not. If user is login than we redirect to main application page otherwise redirect to registration page.
"WE CANNOT USE ANY DELAYED PROMISES IN OUR APP_INITIALIZER"
But after upgrading to NativeScript v4.2 and NativeScript-Angular v6.1.0, the redirection to a correct screen has stopped working in APP_INITIALIZER. It simply shows a white screen. However, it does not give any error. If we check in router.navigation promise than also it will go into a success part. It will struck on some blank page. The sample code can be found on the following URL: https://play.nativescript.org/?template=play-ng&id=Z16l6O&v=6
Can you please check and let us know whether the latest version supports navigation using APP_INITIALIZER or not? If not, then which alternative should we use to redirect the user to an appropriate screen after app startup?
Thanks in anticipation...
Regards,
Hannan
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello,
In our app, in APP_INITIALIZER function, we navigate to particular page based on user login or not. If user is login than we redirect to main application page otherwise redirect to registration page.
"WE CANNOT USE ANY DELAYED PROMISES IN OUR APP_INITIALIZER"
But after upgrading to NativeScript v4.2 and NativeScript-Angular v6.1.0, the redirection to a correct screen has stopped working in APP_INITIALIZER. It simply shows a white screen. However, it does not give any error. If we check in router.navigation promise than also it will go into a success part. It will struck on some blank page. The sample code can be found on the following URL:
https://play.nativescript.org/?template=play-ng&id=Z16l6O&v=6
Can you please check and let us know whether the latest version supports navigation using APP_INITIALIZER or not? If not, then which alternative should we use to redirect the user to an appropriate screen after app startup?
Thanks in anticipation...
Regards,
Hannan
The text was updated successfully, but these errors were encountered: