cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-android] nero120 opened a new issue #969: Screen flashes white just before WebView is loaded
Date Tue, 05 May 2020 23:36:01 GMT

nero120 opened a new issue #969:
URL: https://github.com/apache/cordova-android/issues/969


   # Bug Report
   
   ## Problem
   When using a custom android [theme](https://developer.android.com/guide/topics/ui/look-and-feel/themes#CustomizeTheme)
to display a splash screen, the screen flashes white just before the WebView is loaded which
displays the cordova app. If either the theme or cordova app background colours are not white
this white flash is annoying and unsightly.
   
   ### What is expected to happen?
   The WebView background should be transparent, allowing the activity background to show
through before the cordova app is loaded into the WebView.
   
   
   ### What does actually happen?
   The screen flashes white just before the WebView is loaded which displays the cordova app.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem
-->
   I have created a [test cordova app](https://github.com/nero120/cordovaWebviewBgBugApp)
which demonstrates the issue. It uses a [custom theme](https://github.com/nero120/cordovaWebviewBgBugApp/blob/7be868da01d8ec6cfe2be35813b8c689a7fdb6ff/res/android/values/styles.xml#L3)
which the MainActivity is [configured to use](https://github.com/nero120/cordovaWebviewBgBugApp/blob/7be868da01d8ec6cfe2be35813b8c689a7fdb6ff/config.xml#L25).
This theme has a [`windowBackground` colour](https://github.com/nero120/cordovaWebviewBgBugApp/blob/7be868da01d8ec6cfe2be35813b8c689a7fdb6ff/res/android/values/styles.xml#L5)
defined that displays as soon as the app is first opened. The WebView is then loaded and flashes
white just before the cordova app is displayed. I have set the cordova app background colour
css to the same colour as the theme `windowBackground` so that the issue is easy to spot.
   
   I will try and record a gif movie and upload it here later.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   Just run this [test cordova app](https://github.com/nero120/cordovaWebviewBgBugApp).
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the
issue? -->
   This app uses `cordova-android`@8.1.0 and I am developing on Win10.
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message