apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Ignoring exec() from precious page load #1657

Closed rohanawa closed 6 months ago

rohanawa commented 8 months ago

Bug Report

Problem

Updating from cordova android 8 to 11.0.0

What is expected to happen?

Buttons should work

What does actually happen?

Device event fired after 5 seconds error Android studio getting ignoring exec from previous page load

Information

Command or Code

Cordova prepare Android

Environment, Platform, Device

Android studio giraffe

Version information

Checklist

rohanawa commented 8 months ago

Cordova cli 11 Cordova android 11 Files checked: Config.xml Plugins removed and Installed again

rohanawa commented 7 months ago

Hi , any resolution to this please

breautek commented 7 months ago

ignoring exec from previous page load

In itself is not an error. it just means that there was an exec call that originated from a page load and you've already navigated off that page, so that call is stale.

I would advise looking up the chrome web inspector and remote debug the webview and see if there are any other JS exceptions going on. https://breautek.com/articles/debugging-cordova-apps.html

If this can easily be reproduced in a sample app, it might be worth sharing a test app too.

rohanawa commented 7 months ago

Hi , debugged using Chrome inspect , same issue device ready not fired after 5 seconds

The issue changes on moving to cordova android 10.1.0,

breautek commented 7 months ago

device ready not fired after 5 seconds

Usually this is caused by a plugin either taking a long time to load, or failing to load.

If you're upgrading the cordova-android platform, you might have to check if you have plugins installed that are no longer compatible. If you're coming from cordova-android@8 to current release (which is v12...)

Then some notable plugins are (but not limited to):

note that cordova-android@11 and earlier are out of support since they no longer satisfy Google Play requirements.

breautek commented 6 months ago

Closing as stale.