I've been developing an app using Chrome Apps API and have observed a difference in the behaviour of the app on the desktop and on my android phone. One of the main features in the app is to allow the user to save the information retrieved to a local physical file. On the desktop that works fine but on my android (Nexus 5, Android 4.4 and 5.1.1 ) when I click the save button the 'file manager' opens but there is no option of creating a new file . However, if the phone directory has a txt file for instance, I can save the information to that file no problem. I can't understand why the behaviour on the mobile is so different. Is this the expected behaviour or am I missing something? Manifest.json file below: permissions
{
"name": "Coord",
"description": "Coordinate",
"version": "0.1",
"manifest_version": 2,
"permissions": ["geolocation", "storage", "unlimitedStorage", "syncFileSystem", {"fileSystem": ["write"]}
],
"app": {
"background": {
"scripts": ["background.js"]
}
},
"sockets": {
"tcp": {
"connect": "localhost:80"
},
"udp": {
"send": "localhost:80"
}
},
"icons": {
"16": "assets/icons/Server-16.png",
"128": "assets/icons/Server-128.png"
},
"minimum_chrome_version":"28"
}
Any ideas why this is happening
Thanks
Ofer
--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
Why not have the app create the file itself? Surely you don't need the user to create the file to write to?
Use the file system API to create a new file and write your data to it? Have you tried searching for how to write a file in javascript?
--
You received this message because you are subscribed to a topic in the Google Groups "Chromium Apps" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-apps/2StIUQNRMmQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-app...@chromium.org.