06-25-2011 04:50 AM
I seem to have been flooding the forum recently... sorry for taking up the space.
BACK ON TOPIC:
I have two applications that needs to share data.
HTML5 database does not allow that.
Localstorage only works on OS6
I went for cookies but that wont work either....
What kind of global storage is available for me to use?
06-25-2011 05:00 AM
Trying saving the data to a file located at shared folder. Then you could read the same file from both your applications. But at the same time it is accessible by other apps also.
06-25-2011 05:40 AM - edited 06-25-2011 05:47 AM
I really hope there is a better solution than that (thx for the input though!!, which may be the way if no other options exist).
How on earth are we supposed to write superapps if there is no way that allow applications to talk to eachother.... Sure there may be security concerns when sharing databases or cookies(!?!?), but let us for Gods sake have, at least, the option to do what we want
06-25-2011 08:06 AM
All SQLite databases coming from the browser/WebWorks are encrypted using unique keys for each application. This makes it so that multiple WebWorks applications cannot access the same database.
Your other options are:
1) Saving your data to XML, JSON files on the file system and sharing them in the same location. This would have the same security limitations as a shared SQLite DB. Anyone could access them and anyone can delete them.
2) If you are looking to pass data between two applications you can invoke those applications using the invoke API and pass data to each application. You can configure multiple entry points in your application to be able to handle the data passed in. Essentially you will recieve the data passed to your application as query string parameters on the URL of the paged called in the invoke
To invoke another application in this manner you will need to invoke with JavaArguments
06-25-2011 10:48 AM
06-25-2011 04:47 PM - edited 06-25-2011 04:47 PM