Capacitor Splash Screen always being hidden by Quasar
See original GitHub issueDescribe the bug I want to manually hide the splash screen but it seems that quasar it always hiding it on mount of the root Vue instance. I cannot get quasar to stop auto hiding the splash screen even after setting it in both capacitor.config.json and quasar.config.js. This occurs on both iOS and Android
capacitor.config.json
{
...
"plugins": {
...
"SplashScreen": {
"launchAutoHide": false,
"showSpinner": true,
"androidSpinnerStyle": "small",
"iosSpinnerStyle": "small",
"spinnerColor": "#ffffff",
"backgroundColor": "#21252dff",
"splashFullScreen": true,
"androidScaleType": "CENTER_CROP",
"splashImmersive": false
}
}
}
I have run npx cap copy
after setting as described in capacitor docs
quasar.conf.js
return {
...
capacitor: {
hideSplashscreen: false
},
framework: {
config: {
dark: true,
capacitor: {
hideSplashscreen: false
}
}
}
Codepen/jsFiddle/Codesandbox (required) Not applicable since it only applies to capacitor apps on iOS/Android
To Reproduce I am assuming this would reproduce the behaviour
Steps to reproduce the behavior:
- use Quasar CLI and create capacitor app
- Add my config from above
npx cap copy
yarn dev -m capacitor -T (ios|android)
This also occurs in production build version
Expected behavior Capacitor splash screen should not hide until explicitly called by
import { Plugins } from '@capacitor/core'
const { SplashScreen } = Plugins
SplashScreen.hide()
Screenshots If applicable, add screenshots to help explain your problem.
Platform (please complete the following information): OS: Mac OS 10.15.5 Node: Node 14.15.0 NPM: n/a Yarn: 1.22.10 Browsers: n/a iOS: 13 and 14 Android: 10 and 11 Electron: n/a
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I have removed and re-installed node_modules in my main project and updated quasar. It appears to be working as expected and the problem is resolved. Thanks for looking into this though.
I can run it on Android, not so easy on iOS