PrepAway - Latest Free Exam Questions & Answers

Which additional step, if any, should the developer perform before building and deploying the application to s

A developer is writing a Worklight mobile application to run on Android and iOS platforms. The
developer is using the Apache Cordova device.platform API in the code to identify the device’s
platform type. Which additional step, if any, should the developer perform before building and
deploying the application to successfully use the Apache Cordova API?

PrepAway - Latest Free Exam Questions & Answers

A.
Set the <use-cordova> element to true in the application’s descriptor file to indicate the use of
Cordova.

B.
Copy the cordova.jar library file to the project’s server folder to make it available to the
application at run-time.

C.
No additional step is required since the Cordova framework is automatically added into
Worklight iOS and Android projects.

D.
Add a <script> element to the application’s main HTML file to include the cordova.js JavaScript
file that defines the API functions.

Explanation:


Leave a Reply