window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + 'www/tutorial/comic.json')
results in the failure callback with ENCODING_ERR on device. Works FINE in ios simulator.
iosPersistentFileLocation = Library
iosExtraFilesystems = bundle, library, library-nosync
full paths:
on the device- file:///private/var/mobile/Containers/Bundle/Application/0E3CD0FD-BC69-42D1-BBB2-C59682E7F29A/My%20Comics.app/www/tutorial/comic.json
simulator- file:///Users/admin/Library/Developer/CoreSimulator/Devices/80E29D25-5164-4869-81F9-E30571D2BE92/data/Containers/Bundle/Application/650AE88A-FD42-469B-90FE-494DF11CFA02/My%20Comics.app/www/tutorial/comic.json
You neeed root in your iosExtraFilesystems. Even though the docs say it loaded by default. This fixed it.
iosExtraFilesystems = root, bundle, library, library-nosync