Page 1 of 1

I'm looking for guidance on best method to store user data without requiring 'registration'. Any help? Experience?

Posted: Thu Jul 16, 2015 7:18 pm
by macydj

For example: I'd like to build a simple 'to do' list app that doesn't require users to register with an email and password. Asking the user to create an account seems like an unnecessary step for a simple app - at least from a users standpoint.

I haven't seen any demos that deal with user data that don't require registration. But I frequently encounter apps that are store your data and seeings WITHOUT requiring a sign up of any kind.

I imagine creating a random, unique userID and associating that with each to-do record in the database. This userID would be stored in a local storage variable, and used as the key for retrieving their own to-do items.

As I understand it the local storage items persistent for the life of the app? Is this correct? I get that if a user installs the app on a new device his/her list would be lost. Putting that aside, is this random userID feasible? What are best practices? Pitfalls? Thanks


I'm looking for guidance on best method to store user data without requiring 'registration'. Any help? Experience?

Posted: Fri Jul 17, 2015 10:31 pm
by Illya Stepanov

Hello -

You can check our tutorial here for example, which shows main principles of ToDo app involving our cloud database: https://devcenter.appery.io/tutorials...

But you can modify it to use only Local Storage, the simple tutorial we also have here: https://devcenter.appery.io/tutorials...

Local Storage is a browser API, in hybrid app this APIs are accessible via WebView, more information about Local Storage you can search online e.g.: https://developer.mozilla.org/en/docs...

There are many JavaScript algorithms for generating random IDs or you can write your own or search for solution e.g.: http://stackoverflow.com/questions/10...