[GitHub] [cordova-ios] breautek commented on issue #946: Hide the startup screen programmatically & Show loading animation on startup screen
breautek commented on issue #946: URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-659518005 I know Apple's intention behind storyboards is for you to build a replication of the UI, with content unfilled. I don't think they intend to have animations happening here. They explain their [rationale](https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/launch-screen/#:~:text=Every%20app%20must%20supply%20a%20launch%20screen.=To%20accommodate%20the%20screen%20sizes,all%20of%20your%20launch%20screens.) But doing what they suggest is difficult when you don't build your UI with the native tooling, because we aren't using native UI. So I think, the best alternative is to hide the native splashscreen as soon as possible, even if that just simply reveals a web-based splashscreen with a spinner. And I agree this should be documented, and I'll leave this open for this reason. PRs are welcome. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[GitHub] [cordova-ios] breautek commented on issue #946: Hide the startup screen programmatically & Show loading animation on startup screen
breautek commented on issue #946: URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-659488146 Sounds like a workaround to the spinner then is a webview-based implementation. The native splashscreen could be hidden after a webview-based splashscreen is loaded in, which has the flexibility of adding whatever what you want. However, I would rather this be handled at the app level, not at the framework level. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[GitHub] [cordova-ios] breautek commented on issue #946: Hide the startup screen programmatically & Show loading animation on startup screen
breautek commented on issue #946: URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-659484684 > How to import navigator? `navigator` is an object provided by the webview. Cordova simply just adds onto the object. No import should be necessary. If you're using a framework on top of cordova, you may have to refer to their documentation. > I did not set ShowSplashScreenSpinner to false. When I used cordova-plugin-splashscreen, Spinner was displayed on the splash screen, but now it is not displayed. This may be a bug, but I don't have apple hardware to test with so I'm afraid I won't be helpful here. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[GitHub] [cordova-ios] breautek commented on issue #946: Hide the startup screen programmatically & Show loading animation on startup screen
breautek commented on issue #946: URL: https://github.com/apache/cordova-ios/issues/946#issuecomment-659449172 I'm not sure if this changed in cordova-ios@6 but this is what I do in my apps: config.xml: ```xml ``` This will make it so the splashscreen never disappears until you explicitly tell it to, which you can via javascript: ```js navigator.splashscreen.hide(); ``` This allows you to control when to hide the splash screen. For example in my app, before I show my own UI I first check if the user has stored credentials, and if so load the main screen first. Otherwise load the login screen. Only then I hide the splashscreen. > There should be a loading animation on the initial screen. I think android supports this, but not sure about iOS. Do note that splash screens are images that gets displayed, so there will be a brief period where there is going to be a still image. This is the time between app launch and native code actually executing. While the splashscreen code has been migrated away from the plugin, I believe the [documentation](https://github.com/apache/cordova-plugin-splashscreen#preferences) still applies This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org