Ionic file transfer error

I am using the cordova file transfer and file plugins to go to a server and get some data and image. I am then saving this data to the device’s storage, the data format is a .json file and some images. I am able to save all the data to the device.

My problem happens when I try to use that data. When I try to load the local data, I get

Failed to load resource: net::ERR_FILE_NOT_FOUND file:///android_asset/www/Android/data/com.mydomain.myApp/files/data.json

From the console log messages I can see that ‘file:///android_asset/www/’ is being added to the path when it is being called, is this correct?

I am using the angularjs $resource service.

var localData = $resource(filePath);

If anyone can help I would really appreciate it.

P.S. I also asked this on if you want to track it: