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.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified
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.

 

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,

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.
Developer
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified

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.


 

Developer
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified

Re: Using Web DB and app version upgrade

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

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,

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.
Developer
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified

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.

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,

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.