What do you mean by ‘Download’? I didn’t see this option in cordova-plugin-file - npm. I copied and pasted the Json text into my app. Is there also an example with basic code?
That what I was looking for! See the {id} in the 4th line? The title of your app gets substituted there when the app is build. It should uniquely identify your app.
If you have two apps with different titles, they should install fine at the same time on a device, as two different apps.
But my read/write problem is not solved. I want to install my app on 2 different Android devices and make the data collected from one device available to the app on the other device. Can the Cordova plugin file do this? If not, is there any other solution to my problem?
An app can write to the file system of the device it is running on using the Cordova plugin.
However, it cannot write to the file system of another device. You’ll need to set up some sort of communication between the devices or back to a shared server.
I set up some a communication between the devices (via Dropbox), that is not the problem. I got the example of the Cordova plugin to work, but only for files in the sandbox. What do I have to do to write to the ‘normal’ file system? Nobody other than the app itself can access the sandbox files (apart from the OS), right? If I specify a filename to read: “/abc/xyz/…” I get the error code INVALID_MODIFICATION_ERR from ‘fileSystem.root.getFile’.
My ‘write text to public area of my device’ problem is not solved. George, you said that the cordova file plugin was downloaded 50,000 times in 1 week. I’m surprised that no one in the forum can help me or tell me that what I want to do cannot be done with it.
@nzbnzbnzb - We provide support here for AppStudio, which was developed by us. We know all about it.
Cordova plugins are developed by other companies, not us. We do not know enough about these plugins to give the level of support we like to give. Plus, there are thousands of them.
We occasionally provide help with software that is not ours, but on paid support basis. If you’re interested, contact us at support@appstudio.dev.