breautek commented on issue #1149:
URL: 
https://github.com/apache/cordova-android/issues/1149#issuecomment-1230357035

   The main issue is your webview instance is being destroyed. When this 
happens, Cordova needs to create a new webview and reload.
   
   This is problematic because just because the webview has reloaded, doesn't 
mean the state in native plugins have disappeared, but their state is 
definitely invalid (any callback references they hold and such would be 
invalid). This is a "hard-to-recover" kind of issue.
   
   `Ignoring exec() from previous page load.` also is intentional in these 
circumstances. It's simply stating that you had `exec` calls queued on the 
native side that was created from a previous webview, so those calls are no 
longer valid.
   
   In order to really move this along, we first need to understand what is 
causing the webview to be destroyed in the first place. I have apps that 
supports multiple orientations and they do not exhibit this issue (my test 
devices are mainly Samsung, Google Pixel, & emulators. I do not have Huawei on 
hand). So it's either not as simple as an orientation change, or it could be 
that this is specific to certain devices, or perhaps even a webview version.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to