-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SplashScreen Prefs for delay quirks #32
Comments
Thanks for the report @hollyschinsky! I think the above solution is fine, and it is probably the most platform consistent? Ideally the splash screen would only be open for as long as necessary by the device, does the above facilitate that? |
Yes @dcousens, I think overall it's a better approach to programmatically handle it using the splash screen plugin for better control. If you're looking for the least possible amount of display time, you could first try to hide it immediately upon It's really dependent on how much time any given app needs to load as far as including it in some kind of timeout or not. You'll know if it's not enough time if you see something display between the splash screen and the main app's view, like a plain white screen (or the default webview background color) and can set a timeout delay as needed. |
@hollyschinsky what would be the settings to enforce "forever displayed" on both devices? |
You could just not use the plugin or timeout at all and let the default native behavior occur. |
I think in a similar way to how the KeystoneJS generator works we should add comments explaining how to handle splash screens properly, but let the the default behaviour occur. Thoughts @dcousens, @hollyschinsky, @JedWatson? |
@jossmac I think that would work well, though, I'm not familiar with what would classify as the default behaviour? |
Remember before we started using the plugin/timeout in our apps there was that white flash between the splash screen and the loaded app? |
Right, we certainly don't want that. What I'm thinking is we find the equivalent configuration for an infinite timeout, such that it never goes away unless you ask it to. |
Wouldn't that be confusing for someone unfamiliar with cordova, touchstone, et al.? Imagine this experience:
|
Currently this project won't run quite right off the bat for iOS (and potentially other platforms other than android) due to the config.xml file's current preferences for Splash Screen. It will hang on the splash screen indefinitely.
When these preferences are specified:
There's a quirk in the Splash Screen plugin that requires you to also add some code like the following after
deviceready
to delay the splash screen for a certain number of seconds (in this case 1):This could be added into the starter project in the app.js
startApp()
function.Or you could move those preferences into the android platform in the config.xml file specifically:
I plan to create a PR to help fix up the config.xml file and whatever else based on the other things I opened this morning but wanted to document these issues at least for now in case others run across them. :)
The text was updated successfully, but these errors were encountered: