问题
I'm using PhoneGap build from Adobe. I am trying to write to iOS native file storage.
My config.xml
<gap:plugin name="org.apache.cordova.file" />
<preference name="iosPersistentFileLocation" value="Compatibility" />
<gap:platform name="ios" />
Index.html contains
<script src="cordova.js"></script>
My js
window.onerror = function(error) { console.log(error); };
document.addEventListener("deviceready", onDeviceReady, true);
function onDeviceReady() {
console.log('Here we go');
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, onFileSystemFail);
}
function onFileSystemSuccess(fileSystem) {
console.log('Ready');
}
function onFileSystemFail(e) {
console.log('Fail');
}
Confirmed plugins are loading:

My console output is:
here we go
But I get nothing else, no fail or success messages so I'm totally in the dark about whether it was successful or not.
来源:https://stackoverflow.com/questions/22814647/requestfilesystem-not-firing-any-callbacks-on-ios