I’m trying to debug file handling inside my app by running it in the browser with ‘ionic run browser’. but it seems that the cordova.js doesn’t really provide a file system emulation as i can’t seem to get a file to write anywhere. console.log(JSON.stringify(this.file)) produces:
{“cordovaFileError”:{“1”:“NOT_FOUND_ERR”,“2”:“SECURITY_ERR”,“3”:“ABORT_ERR”,“4”:“NOT_READABLE_ERR”,“5”:“ENCODING_ERR”,“6”:“NO_MODIFICATION_ALLOWED_ERR”,“7”:“INVALID_STATE_ERR”,“8”:“SYNTAX_ERR”,“9”:“INVALID_MODIFICATION_ERR”,“10”:“QUOTA_EXCEEDED_ERR”,“11”:“TYPE_MISMATCH_ERR”,“12”:“PATH_EXISTS_ERR”,“13”:“WRONG_ENTRY_TYPE”,“14”:“DIR_READ_ERR”}}
So it seems it’s more of a dummy object. Is there a way to debug file system things with the browser? I don’t really like recompiling the whole app and transferring it to a physical device as my dev server is remote…
Thanks for any pointers here