Comments under the post suggest that this solution is no longer working and needs update?
https://www.nativescript.org/blog/details/splash-screen-for-your-android-applications
Hey @atanasovg can you confirm this?
The hack still worked as of 1.6.x; however the hack is very problematic in that when you hit the error screen you can't see much of anything because your "splashscreen" is the default theme. (Remember this sets the overall app theme to this "splashscreen" theme and then switches to the normal theme once the page activity is loaded (but you have no control over the error activity).
IMO this is indeed a hack and we should not promote this as the suggested way for creating splash screens (in fact this was just an experiment). If this becomes a highly requested feature then we should come with an official solution that lives within the framework's source and is updated and verified with every release.
As of now we may update the blog post with a disclaimer, just to ensure the proper expectations are set.
Closed unintentionally.
We use this in the nativescript-marketplace-demo.
Here is a link for the sample: https://github.com/NativeScript/nativescript-marketplace-demo
And with 2.2.0 it will be officially supported and added in the default template. You can read the upcoming docs here:
https://github.com/NativeScript/docs/blob/master/publishing/creating-launch-screens-android.md
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
IMO this is indeed a hack and we should not promote this as the suggested way for creating splash screens (in fact this was just an experiment). If this becomes a highly requested feature then we should come with an official solution that lives within the framework's source and is updated and verified with every release.
As of now we may update the blog post with a disclaimer, just to ensure the proper expectations are set.