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

New Contributor
Posts: 7
Registered: ‎03-09-2010
My Device: 9550
My Carrier: web developer

Storing Username and Password

Just started using WebWorks, my question is where should I store the username and password of my app so that the user doesn't have to reenter the username and password every time he use the app. 


Any example for this case?



Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Storing Username and Password

[ Edited ]

I would do it using persistent storage, but this is not supported in webworks (i think only for playbook) so you would have to creat your own extension for it.

Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Storing Username and Password

 - What do you mean by persistent storage? Both localstorage and Web DB are available on smartphones and seem appropriate, no? These databases are only wiped if the app is deleted.

Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Storing Username and Password

Yes, you can also use DB, but no localstorage. Localstorage is not supported for 5.0 for example.(http://www.blackberry.com/developers/docs/webworks/api/?bb5.0). If you are working in a playbook app, you can also use LocalStorage.

About persisten store...