Currently, I am utilizing Cordova along with pure JavaScript.
My goal is to have the ons.ready()
function execute from a JavaScript file named ui.js
, however, it seems to be ineffective.
The code snippet in question appears as follows:
document.addEventListener("DOMContentLoaded", function () {
// Everything runs smoothly until this point
ons.ready(function () {
// This section fails to execute
});
});
The peculiar issue at hand is that the code only fails to work when executed on my Android device - whereas it functions perfectly fine when run on localhost through a browser.
Additionally, since the malfunction occurs specifically on the Android version, troubleshooting becomes tricky without the ability to debug the application.
For context, I rely on IntelliJ IDEA to manage my Cordova app and handle Node.js packages as well.
I appreciate any assistance provided!