You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/26 12:29:58 UTC

[GitHub] [cordova-android] sts-ryan-holton opened a new issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

sts-ryan-holton opened a new issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057


   # Bug Report
   
   ## Problem
   
   When navigating between some pages within my app, on Cordova Android the page seems to reload causing a white screen.
   
   ### What is expected to happen?
   
   Cordova Android shouldn't reload an existing page and cause a white screen to appear.
   
   ### What does actually happen?
   
   When navigating between some pages in my app, the screen goes white for several seconds before appearing to reload on whatever page I was trying to navigate away from.
   
   
   
   ## Information
   
   Using the latest version of Nuxt JS along with Vuetify JS
   
   
   ### Command or Code
   
   Plugins
   
   ```
   cordova-plugin-actionsheet 2.3.3 "ActionSheet"
   cordova-plugin-app-event 1.2.2 "Application Events"
   cordova-plugin-background-mode 0.7.3 "BackgroundMode"
   cordova-plugin-badge 0.8.8 "Badge"
   cordova-plugin-console 1.1.0 "Console"
   cordova-plugin-device 2.0.3 "Device"
   cordova-plugin-file 6.0.2 "File"
   cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
   cordova-plugin-native-keyboard 2.0.6 "Native Keyboard"
   cordova-plugin-whitelist 1.3.4 "Whitelist"
   ```
   
   Main package.json in project root
   
   ```
   "dependencies": {
     "@nuxtjs/axios": "5.12.1",
     "@nuxtjs/firebase": "6.1.1",
     "@nuxtjs/pwa": "3.0.1",
     "axios": "0.20.0",
     "cross-env": "7.0.2",
     "crypto-js": "4.0.0",
     "firebase": "7.19.0",
     "lz-string": "1.4.4",
     "nuxt": "2.14.3",
     "nuxt-vuex-localstorage": "1.2.7",
     "pulljs": "0.1.2",
     "vee-validate": "2.2.15",
     "vue-axios": "2.1.5",
     "vue-moment": "^4.1.0",
     "vue-swatches": "2.1.0",
     "vue-tour": "1.5.0",
     "vue2-touch-events": "^2.3.1",
     "vuedraggable": "2.24.1",
     "vuetify": "1.5.24",
     "vuetify-loader": "1.6.0",
     "vuexfire": "3.2.4",
     "xml-to-json-stream": "1.1.0",
     "xml2js": "0.4.23"
   }
   ```
   
   config.xml
   
   ```
   <?xml version='1.0' encoding='utf-8'?>
   <widget android-versionCode="101050" id="com.COMPANY.APPNAME" ios-CFBundleVersion="1.1.5" version="1.1.5" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
       <name>APPNAME</name>
       <description>
           DESC
       </description>
       <author email="contact@EMAIL" href="SITE">
           AUTHOR
       </author>
       <content src="index.html" />
       <access origin="*" />
       <allow-navigation href="*" />
       <allow-intent href="*" />
       <preference name="DisallowOverscroll" value="true" />
       <platform name="android">
           <icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
           <icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
           <icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
           <icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" />
           <icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
           <icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
           <splash src="res/splash/android/Default@2x~universal~anyany.png" />
           <allow-intent href="market:*" />
           <custom-config-file parent="/*" target="AndroidManifest.xml">
               <uses-permission android:name="android.permission.INTERNET" />
               <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
               <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
               <uses-permission android:name="android.permission.WAKE_LOCK" />
           </custom-config-file>
           <preference name="android-windowSoftInputMode" value="adjustPan" />
           <preference name="android-minSdkVersion" value="28" />
           <preference name="android-targetSdkVersion" value="29" />
       </platform>
       <platform name="ios">
           <icon height="1024" src="res/icon/ios/icon-1024.png" width="1024" />
           <icon height="180" src="res/icon/ios/icon-180.png" width="180" />
           <icon height="167" src="res/icon/ios/icon-167.png" width="167" />
           <icon height="152" src="res/icon/ios/icon-152.png" width="152" />
           <icon height="120" src="res/icon/ios/icon-120.png" width="120" />
           <icon height="87" src="res/icon/ios/icon-87.png" width="87" />
           <icon height="76" src="res/icon/ios/icon-76.png" width="76" />
           <icon height="60" src="res/icon/ios/icon-60.png" width="60" />
           <icon height="40" src="res/icon/ios/icon-40.png" width="40" />
           <splash src="res/splash/ios/Default@2x~universal~anyany.png" />
           <allow-intent href="itms:*" />
           <allow-intent href="itms-apps:*" />
           <preference name="scheme" value="app" />
           <preference name="hostname" value="localhost" />
           <preference name="deployment-target" value="13.0" />
       </platform>
       <plugin name="cordova-plugin-console" spec="1.1.0" />
       <plugin name="cordova-plugin-actionsheet" spec="2.3.3" />
       <plugin name="cordova-plugin-local-notification" spec="https://github.com/katzer/cordova-plugin-local-notifications.git">
           <variable name="ANDROID_SUPPORT_V4_VERSION" value="26.+" />
       </plugin>
       <plugin name="cordova-plugin-file" spec="6.0.2" />
       <plugin name="cordova-plugin-device" spec="2.0.3" />
       <plugin name="cordova-plugin-app-event" spec="^1.2.2" />
       <plugin name="cordova-plugin-native-keyboard" spec="2.0.5">
           <variable name="LICENSE" value="TRIAL" />
           <variable name="LIC_ANDROID" value="TRIAL" />
           <variable name="LIC_IOS" value="TRIAL" />
       </plugin>
       <plugin name="cordova-plugin-whitelist" spec="1.3.3" />
   </widget>
   ```
   
   My JS file responsible for initialising Cordova in my project is...
   
   ```js
   export default (ctx, inject) => {
     const { app } = ctx
   
     const cordovaApp = {
       // Application Constructor
       initialize () {
         alert('app init')
         document.addEventListener(
           'deviceready',
           this.onDeviceReady.bind(this),
           false
         )
         document.addEventListener(
           'pause',
           this.onPause.bind(this),
           false
         )
       },
   
       // Android back button
       androidBackButton () {
         alert('back button')
         app.router.push(`/`)
       },
   
       // pause Event Handler
       //
       // Bind any cordova events here. Common events are:
       // 'pause', 'resume', etc.
       onPause () {
         alert('paused app')
         if (!app.store.state.localStorage.authSettings[0].remainLoggedIn) {
           app.store.state.localStorage.account = null
           app.store.state.localStorage.user = null
         }
       },
   
       // deviceready Event Handler
       //
       // Bind any cordova events here. Common events are:
       // 'pause', 'resume', etc.
       onDeviceReady () {
         alert('device is ready')
         if (device.platform) {
           app.store.state.device.platform = device.platform
         }
   
         if (device.platform == 'Android' || device.platform == 'android') {
   
           // TODO: 07/01/20: crashes Android, requires fix.
           cordova.plugins.backgroundMode.enable()
           cordova.plugins.backgroundMode.overrideBackButton()
           cordova.plugins.backgroundMode.setDefaults({
             silent: true
           })
           cordova.plugins.backgroundMode.on('activate', function () {
             cordova.plugins.backgroundMode.disableWebViewOptimizations()
           })
   
           document.addEventListener(
             'backbutton',
             this.androidBackButton.bind(this),
             false
           )
         }
         cordova.plugins.notification.local.on("click", function(notification) {
           var notificationRaw = JSON.stringify(notification, null, 4);
           var notificationBeautify = JSON.parse(notificationRaw);
           if (notificationBeautify.data.redirectTo) {
             app.router.push(`/url/${notificationBeautify.data.redirectTo}`)
           } else {
             app.router.push(`/`)
           }
         });
   
         /**
          * initialize all different stuff here:
          * e.g.
          *  - sentry
          *  - firebase
          *  - adjust
          *  - push notifications
          *  - fabric
          *  - custom url schema
          *  - facebook
          *  - universal links
          *  - google analytics
          *  - ...
          *
          *  context to "app" is avaialble, but beware only the app scope of a plugin (which means if any other plugin
          *  extends the app scope, it could be that it is not available yet)
          */
   
         try {
           this.initStatusBar()
         } catch (err) {
           alert('status bar error')
           alert(err)
           // console.error('status bar failed', err)
         }
   
         try {
           this.initWKWebView()
         } catch (err) {
           alert('webkit view error')
           alert(err)
           // console.error('init WKWebView failed', err)
         }
   
         try {
           this.initCustomUrlScheme()
         } catch (err) {
           alert('custom url scheme error')
           alert(err)
         }
       },
   
       initCustomUrlScheme () {
         window.handleOpenURL = url => {
           alert('DeepLink: ' + url)
         }
       },
   
       initStatusBar () {
         console.log()
         window.StatusBar.overlaysWebView(false)
         window.StatusBar.backgroundColorByHexString('#009896')
       },
   
       initWKWebView () {
         /* window.WkWebView.allowsBackForwardNavigationGestures(false)
         EventBus.$on('OpenInsidePages', count => {
           if (count > 0) {
             window.WkWebView.allowsBackForwardNavigationGestures(true)
           } else {
             window.WkWebView.allowsBackForwardNavigationGestures(false)
           }
         }) */
       }
     }
   
     cordovaApp.initialize()
   
     // patch redirect url for cordova - removes "formatUrl" call because it add "//" to the path
     app.context.redirect = (status, path, query) => {
       if (!status) {
         return
       }
   
       app.context._redirected = true
       // if only 1 or 2 arguments: redirect('/') or redirect('/', { foo: 'bar' })
       let pathType = typeof path
       if (
         typeof status !== 'number' &&
         (pathType === 'undefined' || pathType === 'object')
       ) {
         query = path || {}
         path = status
         pathType = typeof path
         status = 302
       }
       if (pathType === 'object') {
         path = app.router.resolve(path).href
       }
       // "/absolute/route", "./relative/route" or "../relative/route"
       if (/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path)) {
         app.context.next({
           path: path,
           query: query,
           status: status
         })
       } else {
         // https://developer.mozilla.org/en-US/docs/Web/API/Location/replace
   
         // path = formatUrl(path, query) removed
   
         window.location.replace(path)
       }
     }
   }
   
   ```
   
   ### Environment, Platform, Device
   
   - Android device
   
   
   
   ### Version information
   
   Cordova 10
   Cordova Android 9.0.0
   
   
   ## 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


[GitHub] [cordova-android] breautek edited a comment on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek edited a comment on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680904725


   > Which is a new page, my device pops up an Application Error net::ERR_CLEARTEXT_NOT_PERMITTED (file:///android_asset/www/index.html#/url/144228640160/2) and then crashes...
   
   Does this page make a request to a `http://` url (either by loading a resource, or using an ajax XHR request)? By default, android requires all external traffic to be encrypted using an acceptable level of encryption.


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680920364


   > <application android:usesCleartextTraffic="true" />
   
   This is not recommended, because it allows your app to make insecure connections and isn't really addressing the actual issue.
   
   > Application Error net::ERR_CLEARTEXT_NOT_PERMITTED (file:///android_asset/www/index.html#/url/144228640160/2)
   
   This means something on the page `file:///android_asset/www/index.html#/url/144228640160/2` is making a cleartext request to an external resource. This could be loading an image or some other media asset, or it could be an XHR request.
   
   The information you've given me, I cannot say what is causing the request but the network tab should have a initiator stacktrace for the request that failed. This should tell you a stacktrace and determine where the request is coming from. If you're webpage is reloading like you suggested before, you may have to enable the "preserve" logs settings so that old data remains after page navigation/loads.


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680866864


   @breautek How might I do this? I've tried running my project in dev mode and using Google Chrome, there is no error. The error is related to the Android device `cordova-android` and I'm not sure how to debug this part since I can't reproduce the problem in my browser or on iOS.


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680872046


   Use a debug android build and run on your device or simulator.
   
   Inside chrome on your desktop, go to `chrome://inspect`. You should be able to see debuggable remote targets.
   
   ![Screenshot from 2020-08-26 10-14-51](https://user-images.githubusercontent.com/11200662/91307971-05ab4b00-e785-11ea-8de6-f01587cad178.png)
   


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-754623414


   > @srikarnagzz this issue turned out to not be related to Cordova Android in the end, but rather a change in the framework's code that I'm using
   
   


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-754575769


   @srikarnagzz this issue turned out to not be related to Cordova Android in the end, but rather a change in the framework's code that I'm using


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680907352


   @breautek, no, the page is a local page so when going from `file:///android_asset/www/index.html#/url/144228640160` -> `file:///android_asset/www/index.html#/url/144228640160/2` there is no XHR request, `/2`, after some Googling I found that:
   
   ```
   <application android:usesCleartextTraffic="true" />
   ```
   
   Needs to be added to the `config.xml` file, but adding it seems to make no difference for me...
   
   ```
   <platform name="android">
         <icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
         <icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
         <icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
         <icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" />
         <icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
         <icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
         <splash src="res/splash/android/Default@2x~universal~anyany.png" />
         <allow-intent href="market:*" />
         <custom-config-file parent="/*" target="AndroidManifest.xml">
             <application android:usesCleartextTraffic="true" />
             <uses-permission android:name="android.permission.INTERNET" />
             <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
             <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
             <uses-permission android:name="android.permission.WAKE_LOCK" />
         </custom-config-file>
         <preference name="android-windowSoftInputMode" value="adjustPan" />
         <preference name="android-minSdkVersion" value="28" />
         <preference name="android-targetSdkVersion" value="29" />
     </platform>
   ```
   
   This **whole behaviour is only apparent for Android though, and works fine in the browser and iOS which is incredibly strange!!**


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton edited a comment on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton edited a comment on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680907352


   @breautek, no, the page is a local page so when going from `file:///android_asset/www/index.html#/url/144228640160` -> `file:///android_asset/www/index.html#/url/144228640160/2` there is no XHR request, `/2`, after some Googling I found that:
   
   ```xml
   <application android:usesCleartextTraffic="true" />
   ```
   
   Needs to be added to the `config.xml` file, but adding it seems to make no difference for me...
   
   ```xml
   <platform name="android">
         <icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
         <icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
         <icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
         <icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" />
         <icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
         <icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
         <splash src="res/splash/android/Default@2x~universal~anyany.png" />
         <allow-intent href="market:*" />
         <custom-config-file parent="/*" target="AndroidManifest.xml">
             <application android:usesCleartextTraffic="true" />
             <uses-permission android:name="android.permission.INTERNET" />
             <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
             <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
             <uses-permission android:name="android.permission.WAKE_LOCK" />
         </custom-config-file>
         <preference name="android-windowSoftInputMode" value="adjustPan" />
         <preference name="android-minSdkVersion" value="28" />
         <preference name="android-targetSdkVersion" value="29" />
     </platform>
   ```
   
   This **whole behaviour is only apparent for Android though, and works fine in the browser and iOS which is incredibly strange!!**


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680903340


   @breautek Sweet, I've just figured this out, and my white screen behaviour continues and nothing pops up in the console in the inspector.
   
   My starting page is: file:///android_asset/www/index.html#/url/144228640160
   
   And I'm trying to navigate to: file:///android_asset/www/index.html#/url/144228640160/2
   
   Which is a new page, my device pops up an `Application Error net::ERR_CLEARTEXT_NOT_PERMITTED (file:///android_asset/www/index.html#/url/144228640160/2)` and then crashes...


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680904725


   > Which is a new page, my device pops up an Application Error net::ERR_CLEARTEXT_NOT_PERMITTED (file:///android_asset/www/index.html#/url/144228640160/2) and then crashes...
   
   Does this page make a request to a `http://` url? By default, android requires all external traffic to be encrypted using an acceptable level of encryption.


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680855393


   > Cordova Android shouldn't reload an existing page
   
   Cordova Android webview wouldn't ever reload an existing page. It would load an HTML document, and run it's javascript.
   
   What you're describing sounds like you're encountering a javascript exception within your app. Have you tried connecting the chrome web inspector and looking for javascript errors in the console?


----------------------------------------------------------------
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


[GitHub] [cordova-android] sts-ryan-holton commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
sts-ryan-holton commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-680928909


   @breautek Regardless of whether I add that `android:usesCleartextTraffic` it still prevents the new page from loading on Android and simply shows a blank screen before seamingly reloading the page and all of the assets I was trying to navigate away from.
   
   I've tried removing everything apart from basic HTML from the new page, still no luck here.


----------------------------------------------------------------
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


[GitHub] [cordova-android] srikarnagzz commented on issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
srikarnagzz commented on issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057#issuecomment-754193127


   @sts-ryan-holton Any update on the issue? I am working on a Cordova app, app works fine with android 7 and above 7 but not with android version 6. Any thoughts?


----------------------------------------------------------------
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


[GitHub] [cordova-android] breautek closed issue #1057: Cordova Android reloads causing white screen on some app pages when navigating

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1057:
URL: https://github.com/apache/cordova-android/issues/1057


   


----------------------------------------------------------------
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