I'm trying to write a file when developing a Tizen 4.0.0 wearable app. However the following statements results in an error.
tizen.filesystem.resolve('documents', directory => {
console.log(JSON.stringify(directory));
}, error => {
console.log(JSON.stringify(error));
}, 'rw');
D/ConsoleMessage(12143): [0L7IY2pHLP] app.js:29: {"code":0,"name":"InvalidValuesError","message":"PLATFORM ERROR"}
I've added the following priviliges (filesystem.read, filestem.write and mediastorage) to config.xml:
Any ideas?
grtz, Koen