Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
d_source
Posts: 116
Registered: ‎03-08-2011
Accepted Solution

Using Web DB and app version upgrade

Hi all,

 

I am using Web DB to store some user info which is critical to my app (that I am creating). If/when I release a new version, will the content stored in Web DB be deleted if the user upgrades to a newer version? Obviously i would keep the same DB structure in the new version but if the user loses all the previously stored info then the app is useless. And since blackberry.io.file.saveFile isn't available to webworks as of yet, I have no way of preventing data loss or creating a backup.

 

Thanks.

 

Please use plain text.
Developer
interfaSys
Posts: 794
Registered: ‎11-19-2009
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Using Web DB and app version upgrade

The data won't be deleted. Just make sure you NEVER change the name of your app or it will install as a new app.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
d_source
Posts: 116
Registered: ‎03-08-2011

Re: Using Web DB and app version upgrade

Thanks.


interfaSys wrote:

The data won't be deleted. Just make sure you NEVER change the name of your app or it will install as a new app.


 

Please use plain text.
Developer
d_source
Posts: 116
Registered: ‎03-08-2011

Re: Using Web DB and app version upgrade

Is there any way to test and verify that this is the case?

Please use plain text.
Developer
interfaSys
Posts: 794
Registered: ‎11-19-2009
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Using Web DB and app version upgrade

Just change the version number and install the app again. You should not lose anything.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.
Developer
d_source
Posts: 116
Registered: ‎03-08-2011

Re: Using Web DB and app version upgrade

You mean change the version in the config file and then re-install using the debug token/developer mode onto my playbook? I'll give that a shot to see if it creates a new app or overwrites the existing test app.

 

Thanks.

Please use plain text.
Developer
interfaSys
Posts: 794
Registered: ‎11-19-2009
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Using Web DB and app version upgrade

Exactly.

If you only bump the version number, you should be all right.

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Please use plain text.