Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70924

Capacitor 7, Android 29, SplashScreen.hide.. not hiding

$
0
0

i just updated my app to Capacitor v7, and am testing it to be sure that all is good.

Being the glutton for punishment that I am, i’ve had a low bar of Android SDK v29. I’m finding that in my app initialization i need to put a delay of a couple hundred msec before I call SplashScreen.hide() or it never hides. Android SDK 33 and 35 seem just fine without it.

Anyone else seeing that? (or did I miss the part where you have to be on something > Android 11)

snippet from my AppShell.tsx

if (Capacitor.isNativePlatform()) {
  setTimeout(() => { // new code as a workaround.
    SplashScreen.hide(); // original code
  }, 200); 
} else {
// web things
}

Note, that I’m using the emulator, not a real device. I don’t have a device that old handy.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>