Intel XDK + Phonegap

I would like to ask, is it possible for me to integrate the Intel XDK API and the Phonegap API in one mobile application? This is because some of the APIs are only available in Phonegap and vice versa.

+4
source share
2 answers

Yes, if I understood the question correctly, I believe that you can access the API in one application using the Intel XDK.

+6
source

These tips can be found in index.html when creating a new empty XDK project:

. intelxdk.js cordova.js -      , , index.html.      JS , "phantom".      , , XDK.

When building with any of the XDK Cordova build systems (e.g., "Cordova Hybrid App") you can
omit the "intelxdk.js" and "xhr.js" script files shown below. It does not hurt to keep them, but
they are not used in that environment, they are only needed for the "legacy" XDK build systems.
(In the case of the Cordova build system, the Cordova and XDK apis are included as plugins
and the CORS configuration is specified as a parameter in the build configuration file.)

, , , API, API Accelerometer, Geolocation Base, , Intel API .

xdk cordova

:

intelxdk.js cordova.js, , Phantom , script, , , , index.html:

<script src="intelxdk.js"></script>         <!-- phantom library, needed for XDK api calls -->
<script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls -->
+2

Source: https://habr.com/ru/post/1538945/


All Articles