Nativescript: Android SplashScreen hack needs update?

Created on 16 Mar 2016  路  8Comments  路  Source: NativeScript/NativeScript

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

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.

All 8 comments

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.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OscarLopezArnaiz picture OscarLopezArnaiz  路  3Comments

rLoka picture rLoka  路  3Comments

NickIliev picture NickIliev  路  3Comments

fmmsilva picture fmmsilva  路  3Comments

yclau picture yclau  路  3Comments