1 Answer

0 votes
by

You may notice the following line in index.html.

<script type="text/javascript" src="cordova.js"></script>

The cordova.js file is the PhoneGap (powered by the open-source Apache Cordova project) library, and it is used to access the native device hardware such as camera, contacts, and GPS from JavaScript in your PhoneGap apps.

You must include this file reference to ensure access to the Cordova APIs.

cordova.js is not located anywhere in the folder. However, it is injected at runtime by PhoneGap CLI.

Related questions

0 votes
    When I build cordova this message view: Using "requireCordovaModule" to load non-cordova module "q" is not ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    Which event is fired when Cordova APIs are loaded and ready to use? Please select the correct options from below (a)apiready (b)deviceready (c)appready (d)None of the options...
asked Dec 11, 2020 in Education by Editorial Staff
0 votes
    Which is not a slider available in d3.js?...
asked Mar 7, 2023 in Technology by JackTerrance
0 votes
    gulp.src in gulpfile.js refers to ______. A. Source location of files to be acted upon B. root folder of gulp C. Source location of all files D. location of gulpfile.js...
asked Feb 3, 2023 in Technology by JackTerrance
0 votes
    ______________ are JS functions that you can call from your templates, and encourage you to reuse code and build complex templates a)Expressions b)Helpers c)Template d)Context...
asked Apr 29, 2021 in Technology by JackTerrance
0 votes
    What is the correct syntax for referring to an external script called “blogmepost.js”? A. B. C. D....
asked Feb 27, 2021 in Technology by JackTerrance
0 votes
    What is the HTML tag under which one can write the JavaScript code? A) B) C)
    What is the reactor design pattern used in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    How can we handle uncaught exceptions in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    What is the difference between readFile and createReadStream functions in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    What are the uses of EventEmitter in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
0 votes
    What are the differences between Node.js and Javascript?...
asked Jan 25, 2021 in Technology by JackTerrance
...