Hi this worked well,
but somehow for 1 second the splashscreen is streched for 1 second and then it crops the image to the right aspect ratio. Anyone facing the same issue?
Edit:
This solved my problem
opened 11:41AM - 03 Jun 19 UTC
closed 04:02PM - 06 Feb 20 UTC
workaround
Description of the problem:
I followed the instructions to configure splash scr… een scaling described here: https://capacitor.ionicframework.com/docs/apis/splash-screen/#configuration. When the app launches, Capacitor displays my splash screen scaled incorrectly, then adjusts to the scaling I have in my `capacitor.config.json` file:
```
"plugins": {
"SplashScreen": {
"launchShowDuration": 1000,
"launchAutoHide": true,
"androidSplashResourceName": "splash",
"androidScaleType": "CENTER_CROP"
}
},
```
What I'm expecting is that the splash screen displays once, at the specified scale.
Affected platform
- [X] Android
- [ ] iOS
- [ ] electron
- [ ] web
OS of the development machine
- [X] Windows
- [ ] macOS
- [ ] linux
Other information:
Capacitor version:
5.0
node version:
10.15.3
npm version:
6.9.0
CocoaPods version:
Steps to reproduce:
As described above.
Link to sample project:
3 Likes