Ionic 7 capacitor - new app with stuck white screen in android 8.1 or 7

hi every one :
i have issue in ionic 7 - angular - capacitor
i create a new app and just test it in android v 8.1 and i face this error
my app info

  Require stack:
   - /Users/someone/.nvm/versions/node/v18.15.0/lib/node_modules/@ionic/cli/lib/project/index.js
   - /Users/someone/.nvm/versions/node/v18.15.0/lib/node_modules/@ionic/cli/lib/index.js
   - /Users/someone/.nvm/versions/node/v18.15.0/lib/node_modules/@ionic/cli/index.js
   - /Users/someone/.nvm/versions/node/v18.15.0/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 7.1.1 (/Users/someone/.nvm/versions/node/v18.15.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.6.0
@angular-devkit/build-angular : 17.0.6
@angular-devkit/schematics : 17.0.6
@angular/cli : 17.0.6
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 5.5.1
@capacitor/android : 5.5.1
@capacitor/core : 5.5.1
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run (update available: 2.0.0) : 1.7.4

System:

NodeJS : v18.15.0 (/Users/someone/.nvm/versions/node/v18.15.0/bin/node)
npm : 9.5.0
OS : macOS Unknown

Assuming your Android 8.1 is an emulator?

This error typically happens when the device is running a really old WebView version which doesn’t support modern JavaScript. I found that older emulator devices (like a Pixel 2) are using an integrated Android WebView vs. the new separate Android System WebView (which is installed like a normal app and updates independently from the OS).

So, you could try installing Android System Webview from the Play Store in the emulator.

yes its emulator
but , I tried this demo on real device (Android 7) same error

It’s most likely the same reason. An old WebView that doesn’t support JS features your app is using.

yes its , but what i have to do ? did you have any idea ?
note : this app is demo ionic app from scratch tab demo i am not add any features or any line of code on it .
i found soluaion to change target in tsconfig.json from es2022 to es2015 but i thing it not correct with angular 17 or 16
no soluation yet

What version of the WebView is installed? Ionic 7 supports >= Chromium 79 (source).

i can’t understand your question , but i use ionic - angular - capacitor
where is the version of web view ?

What version of the WebView is installed?

same issue here

It worked for me after using .browserlistrc file but I now see that my app styling is completely broken, because I had used modern css such as css variables var(–color), custom properties, etc. Does anybody know how to fix that?

Without more info, it’s hard to know. If you are using Vite, you would need @vitejs/plugin-legacy.