Software Archive
Read-only legacy content
17061 Discussions

Bug reading local XML with new plugin

BRISSE_J_
Beginner
473 Views

Hello everyone,

I develop a mobile software since few month, its works fine !

But on last update of XDK, the CLI Cordova was update from 4.1.2 to 5.1.1 and there is a bug with the plugin 'File' (I suppose).

Explanation :

When I read a XML file with $.Ajax() of jQuery, it work fine when url is 'http://....' but not when is 'cdvfile://...'.

The bug is only when I built the APK File, on AppPreview everything's works !

I try downgrade CLI Cordova to 4.1.2, its works fine on AppPreview and APK built.

There is a bug with this plugin ?

Thanks.

0 Kudos
2 Replies
PaulF_IntelCorp
Employee
473 Views

I think the difference between CLI4 and CLI5 that you are experiencing has to do with the changes in whitelisting. The current version of App Preview is built with the equivalent of CLI4, as is the Debug tab, so the only way to get the full behavior of CLI5 is with a build.

0 Kudos
Elroy_A_Intel
Employee
473 Views

For more information on whitelisting with Intel XDK for Cordova 5, visit https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk. You may also want to consider configuring the plugin's preferences in the intelxdk.additions file. You can find configuration tips at https://github.com/apache/cordova-plugin-file#configuring-the-plugin-optional

For updating the intelxdk.additions file, visit https://software.intel.com/en-us/xdk/docs/adding-special-build-options-to-your-xdk-cordova-app-with-the-intelxdk-config-additions-xml-file.

0 Kudos
Reply