phonegap / phonegap-plugin-contentsync

Download and cache remotely hosted content
Apache License 2.0
206 stars 98 forks source link

[iOS 9.3.2] Syncs content into wrong cordova.file.dataDirectory folder #132

Open roblav96 opened 8 years ago

roblav96 commented 8 years ago

Since updating my devices to iOS 9.3.2 files are synced to the incorrect cordova.file.dataDirectory path.

console

Notice the files are being saved to my /Library/ and not /Library/NoCloud/ like cordova.file.dataDirectory reports.

imhotep commented 8 years ago

@roblav96 using the sample provided in this repository and an iPhone 6S running iOS 9.3, everything gets extracted to /Library/NoCloud/. Do you have steps to reproduce ?

html-rulez-d00d commented 8 years ago

@imhotep Sorry to be tardy to the party. I can confirm this issue by simply calling the function as so:

var sync = ContentSync.sync({ src: globals.url, id: 'test1.js'});
sync.on('progress',progressfn);
sync.on('complete',successfn);
sync.on('error',errorfn);

Using iPhone 6 @ 9.3.5 The file always appears to be placed in the ../Library/ storage instead of ../Library/NoCloud/

imhotep commented 8 years ago

@html-rulez-d00d are you using copyRootApp option? There might be an issue there but otherwise I cannot reproduce the issue as the application path is always prefixed with NoCloud.

html-rulez-d00d commented 8 years ago

@imhotep I am not using copyRootApp. This is occurring on multiple iPhones and I am using the simple configuration displayed in my initial comment.

imhotep commented 8 years ago

@html-rulez-d00d then I am sorry. I can't reproduce it. If you want to upload a sample app somewhere, I'd be happy to give it a try!

html-rulez-d00d commented 8 years ago

Sorry, the app I have is my employer's property so I'm sure I have no options there. Also, I don't have access to a Mac outside of work so... I guess this will always be a mystery then. Perhaps @roblav96 could supply a sample of his app for evaluation since we both have the same issue.