As I transform my web app from HTML to Cordova for enhanced device functionality, including background audio and other features, I'm encountering some challenges. Due to the original structure of my application, which consists of multiple HTML files, I am unable to consolidate them into a single file as recommended for Cordova development.
My main hurdle is integrating various Cordova plugins across these pages. While I have successfully referenced the cordova.js file in the root directory using
<script src="cordova.js"></script>
, I am facing issues when trying to link to it in subdirectories using ../cordova.js, resulting in a 404 error and failure of the plugins to work properly.
If anyone has insight on how to effectively utilize the cordova.js file in subdirectories, allowing me to leverage plugins throughout all pages, I would greatly appreciate your help. Thank you!