hello,
i want to add a splash screen image to my app.
i generate the icon and splash with this:
npx capacitor-assets generate
icons worked for ios and android
but splash screen only works with android < v12
i see that from v12 its a common behavior from android OS. lowest version worked well
expected result-android 10
actual-android 12
i couldnt find a way to show correctly splash
styles.xml
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
<item name="android:background">@drawable/splash</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/splash</item>
<item name="android:windowSplashScreenIconBackgroundColor">#004d28</item>
<item name="windowSplashScreenBackground">#00646A</item>
</style>
capacitor.config.ts
plugins: {
SplashScreen: {
launchShowDuration: 3000,
launchAutoHide: true,
launchFadeOutDuration: 3000,
backgroundColor: '#ffffffff',
androidSplashResourceName: 'splash',
androidScaleType: 'CENTER_CROP',
showSpinner: true,
androidSpinnerStyle: 'large',
iosSpinnerStyle: 'small',
spinnerColor: '#3d4213',
splashFullScreen: true,
splashImmersive: true,
layoutName: 'launch_screen',
useDialog: true,
},
do i have to touch someting in android studio? in thtat case I should configure it every time a build a apk?
is it possible to add a splash screen in android12 and majors?