离子/Cordova应用程序在飞溅屏幕后留在白屏幕上 - 网络视图缓存文件错误
最近在某些Android 11&中更新了我们的离子应用程序的Android-TargetSdkversion = 30在飞溅屏幕之后,它提供了12个手机,它将提供空白屏幕,并且不会消失。 它在一些Android 11& 12个设备和模拟器中的所有版本,但是一些三星(S20,S21),最新的Pixel 6都遇到了这个问题。 如某些关于Android WebView问题的论坛所述,我试图禁用和启用“ Android System WebView”,但这无济于事。
LogCat中有以下错误,感谢此
2022-07-01 19:54:12.424 17025-17940/? e/chromium:[错误:simple_file_enumerator.cc(21)]代码>
下面是软件包。
"name": "**",
"version": "0.0.1",
"author": "***",
"homepage": "***",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^10.0.8",
"@angular/common": "^10.0.8",
"@angular/core": "^10.0.8",
"@angular/forms": "^10.0.8",
"@angular/platform-browser": "^10.0.8",
"@angular/platform-browser-dynamic": "^10.0.8",
"@angular/router": "^10.0.8",
"@fortawesome/angular-fontawesome": "0.7.0",
"@fortawesome/fontawesome-svg-core": "1.2.30",
"@fortawesome/free-solid-svg-icons": "5.14.0",
"@ionic-native/camera": "^5.27.0",
"@ionic-native/core": "^5.27.0",
"@ionic-native/in-app-browser": "^5.27.0",
"@ionic-native/keyboard": "^5.27.0",
"@ionic-native/open-native-settings": "^5.27.0",
"@ionic-native/screen-orientation": "^5.27.0",
"@ionic-native/sim": "^5.27.0",
"@ionic-native/splash-screen": "^5.27.0",
"@ionic-native/status-bar": "^5.27.0",
"@ionic/angular": "^5.3.1",
"@ionic/cli": "^6.11.0",
"@ionic/storage": "^2.3.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular2-signaturepad": "^3.0.4",
"cordova-android": "9.1.0",
"cordova-background-geolocation-lt": "^3.9.2",
"cordova-ios": "^5.1.1",
"cordova-open-native-settings": "1.5.2",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-background-fetch": "^6.1.1",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-sim": "^1.3.3",
"cordova-plugin-splashscreen": "^5.0.4",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-sqlite-storage": "^3.4.0",
"core-js": "^3.6.5",
"es6-promise-plugin": "^4.2.2",
"hammerjs": "^2.0.8",
"rxjs": "^6.6.2",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/architect": "^0.803.29",
"@angular-devkit/build-angular": "~0.1000.5",
"@angular-devkit/core": "^10.0.5",
"@angular-devkit/schematics": "^10.0.5",
"@angular/cli": "^10.0.5",
"@angular/compiler": "^10.0.8",
"@angular/compiler-cli": "^10.0.8",
"@angular/language-service": "^10.0.8",
"@ionic/angular-toolkit": "^2.3.0",
"@types/jasmine": "^2.8.17",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"cordova-plugin-geolocation": "^4.0.1",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~7.0.0",
"tslint": "~6.1.0",
"typescript": "~3.9.7"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-sim": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-camera": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "This app has a feature that uses your phone’s Location Services to track you"
},
"cordova-open-native-settings": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-screen-orientation": {},
"cordova-background-geolocation-lt": {
"BACKGROUND_MODE_LOCATION": "<string>location</string>"
},
"cordova-plugin-androidx-adapter": {}
},
"platforms": [
"android",
"ios"
],
"browserslist": []
}
}
Recently updated android-targetSDKVersion=30 for our ionic app, in certain Android 11 & 12 phones it is giving blank screen after splash screen and it is not going away.
It works on some Android 11 & 12 devices and all versions in emulator, but some of the Samsung(S20, S21), latest Pixel 6 all are having this issue.
I have tried to disable and enable “Android System WebView” as mentioned in some forum on Android webview issues but it did not help.
Following error is in the logcat, appreciate any help with this
2022-07-01 19:54:12.424 17025-17940/? E/chromium: [ERROR:simple_file_enumerator.cc(21)] opendir /data/user/0/com.x.y/cache/WebView/Default/HTTP Cache/Code Cache/wasm: No such file or directory (2)
Below is the package.json
"name": "**",
"version": "0.0.1",
"author": "***",
"homepage": "***",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^10.0.8",
"@angular/common": "^10.0.8",
"@angular/core": "^10.0.8",
"@angular/forms": "^10.0.8",
"@angular/platform-browser": "^10.0.8",
"@angular/platform-browser-dynamic": "^10.0.8",
"@angular/router": "^10.0.8",
"@fortawesome/angular-fontawesome": "0.7.0",
"@fortawesome/fontawesome-svg-core": "1.2.30",
"@fortawesome/free-solid-svg-icons": "5.14.0",
"@ionic-native/camera": "^5.27.0",
"@ionic-native/core": "^5.27.0",
"@ionic-native/in-app-browser": "^5.27.0",
"@ionic-native/keyboard": "^5.27.0",
"@ionic-native/open-native-settings": "^5.27.0",
"@ionic-native/screen-orientation": "^5.27.0",
"@ionic-native/sim": "^5.27.0",
"@ionic-native/splash-screen": "^5.27.0",
"@ionic-native/status-bar": "^5.27.0",
"@ionic/angular": "^5.3.1",
"@ionic/cli": "^6.11.0",
"@ionic/storage": "^2.3.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular2-signaturepad": "^3.0.4",
"cordova-android": "9.1.0",
"cordova-background-geolocation-lt": "^3.9.2",
"cordova-ios": "^5.1.1",
"cordova-open-native-settings": "1.5.2",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-background-fetch": "^6.1.1",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-sim": "^1.3.3",
"cordova-plugin-splashscreen": "^5.0.4",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-sqlite-storage": "^3.4.0",
"core-js": "^3.6.5",
"es6-promise-plugin": "^4.2.2",
"hammerjs": "^2.0.8",
"rxjs": "^6.6.2",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/architect": "^0.803.29",
"@angular-devkit/build-angular": "~0.1000.5",
"@angular-devkit/core": "^10.0.5",
"@angular-devkit/schematics": "^10.0.5",
"@angular/cli": "^10.0.5",
"@angular/compiler": "^10.0.8",
"@angular/compiler-cli": "^10.0.8",
"@angular/language-service": "^10.0.8",
"@ionic/angular-toolkit": "^2.3.0",
"@types/jasmine": "^2.8.17",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"cordova-plugin-geolocation": "^4.0.1",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~7.0.0",
"tslint": "~6.1.0",
"typescript": "~3.9.7"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-sqlite-storage": {},
"cordova-plugin-sim": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-camera": {},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "This app has a feature that uses your phone’s Location Services to track you"
},
"cordova-open-native-settings": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-screen-orientation": {},
"cordova-background-geolocation-lt": {
"BACKGROUND_MODE_LOCATION": "<string>location</string>"
},
"cordova-plugin-androidx-adapter": {}
},
"platforms": [
"android",
"ios"
],
"browserslist": []
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@JKRo here's what worked for me:
So first I signed up for the free trial of Browserstack and uploaded and tested my app there.并没有真正返回任何大错误,但是我可以看到SQLite插件存在问题 - 我以前从未见过。因此,在那里进行测试可能很有用。
cordova-sqlite-storage v5.1.0 => v6.0.0
@ionic-native/sqlite v5.30.0 =&gt; v5.36.0
was mentioned here: https://stackoverflow.com/a/62067281/4805298 and https://stackoverflow.com/a/68034532/4805298
other fixes I tried that may work for you:
downgrade your Google服务4.0.1-位于build.gradle
中
I can't find the link that helped me with this but I added an extra loading style:
in android/app/src/main/res/values/styles.xml:
create a colors.xml file in android/app/src/main/res/values/..
in Android Manifest:
update the activity theme to the new loading theme
Another thing that was very useful was that because I couldn't see the errors in the emulator, I would upload my app to the google控制台内部测试部分,因为随后将在他们在多个设备上测试您的应用程序的情况下生成预发出的报告。我可以看到报告错误的设备/Android版本的视频。当您没有报告错误的物理设备时,它会使生活更加轻松。
@JKRo here's what worked for me:
So first I signed up for the free trial of Browserstack and uploaded and tested my app there. It wasn't really returning any big errors but I could see there were issues with the SQLite plugin - which I haven't seen previously. so it may be useful to test there.
cordova-sqlite-storage v5.1.0 => v6.0.0
@ionic-native/sqlite v5.30.0 => v5.36.0
was mentioned here: https://stackoverflow.com/a/62067281/4805298 and https://stackoverflow.com/a/68034532/4805298
other fixes I tried that may work for you:
downgrade your google services to 4.0.1 - located in build.gradle
I can't find the link that helped me with this but I added an extra loading style:
in android/app/src/main/res/values/styles.xml:
create a colors.xml file in android/app/src/main/res/values/..
in Android Manifest:
update the activity theme to the new loading theme
Another thing that was very useful was that because I couldn't see the errors in the emulator, I would upload my app to the google console internal testing section because then a pre-launch report would be generated where they've tested your app on multiple devices. I could see videos of the devices/android versions that were reporting the errors. it makes life much easier when you don't have the physical devices that are reporting the errors.
我在离子4上遇到了同样的问题,在更新到科尔多瓦后没有任何错误。
为了解决此问题,我已更新到所有Cordova插件的最新版本。
NPM过时的
离子Cordova插件RM Plugin_name。
离子Cordova插件添加插件。
我将其添加到config.xml:
&lt; preference name =“ AndroidWindowsPlashScreenAnimatedIcon” value =“ Resources/splash.png”/&gt;
I had the same issue on Ionic 4, white scrren without any error after update to Cordova 11.
To fix this I have updated to latest version all the cordova plugins.
npm outdated
ionic cordova plugin rm plugin_name.
ionic cordova plugin add plugin_name.
And I added this to config.xml:
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splash.png" />