Software Archive
Read-only legacy content
17061 Discussions

cordova-plugin-file Emulate Error

YUXIAO_C_
Beginner
379 Views

Hi,

I was trying to make an app which has a function reading the local txt file. I added the cordova-plugin-file v3.0 through XDK.

I can see the plugin in the plugin management view . (I think it is correctly installed. right? )

My app framework is ionic with ngCordova . I just copy the ngCordova sample code to my app for simple test.

but when I change to Emulate view and click the button which will active the function $cordovaFile.readFileAsText, the XDK came up with an error

said that :

Unimplemented API Emulation: File.resolveLocalFileSystemURI]

your app has called a Cordova plugin whose native code is not known to the emulator. Because the emulator cannot execute native code ...

 

Is this means that emulator is not support the simulation of  this  cordova-plugin-file  plugin? or am I miss some settings of the plugin?

0 Kudos
1 Reply
John_H_Intel2
Employee
379 Views

You will need to test the app on device. The emulator has its limitations and this happens to be one of them.

0 Kudos
Reply