Page 1 of 1

storing personalization data in a mobile app

Posted: Sun Mar 19, 2017 6:08 pm
by UKMC
Hi altogether,

I want to publish a standalone App for iOS and Android.
This App should be personalized for every user by phonenumber and/or mailaddress.

So at the first startUp, the user has to register with these (and optional some further information).

Most Apps I know provide the service that for all later logins the user is not obliged to login explicitly. Instead, the data input from the first session is used again.

Has anyone an idea how this can be realized ?

I would be thankful for any advice.

Best regards


Ulrich

Re: storing personalization data in a mobile app

Posted: Sun Mar 19, 2017 11:24 pm
by jmburnod
Hi Ulrich,
For one on my apps I use a simple file .txt in a folder of documents folder.
If this file doesn't exist that signify that is the first opening and I open a cd for login and save it.
I use this in local but I think this works with a file on a server.
Best regards
Jean-Marc

Re: storing personalization data in a mobile app

Posted: Mon Mar 20, 2017 12:30 am
by Dixie
Jean-Marc wrote...
For one on my apps I use a simple file .txt in a folder of documents folder.
If this file doesn't exist that signify that is the first opening and I open a cd for login and save it.
I use this in local but I think this works with a file on a server.
I do the same... and yes, this method will work on a server, if you are not placing the details in a database..

Dixie

Re: storing personalization data in a mobile app

Posted: Mon Mar 20, 2017 10:01 am
by UKMC
Hi Jean-Marc and Dixie,

thanks for your hints.

Just to ensure that we have the same understanding:

The App is running on a mobile (iOS or Android)
There is no known context about the user (as the phonenumber cannot be read from LC)

How should a server file or database content help identifying the userĀ“?
IMHO, this file (like an .ini) would have to be placed on the phone.

Am I wrong and if yes, could you please give a more detailed comment
If no, how do I work with files on mobiles, I've never done this...

Best regards for your help


Ulrich
Dixie wrote:Jean-Marc wrote...
For one on my apps I use a simple file .txt in a folder of documents folder.
If this file doesn't exist that signify that is the first opening and I open a cd for login and save it.
I use this in local but I think this works with a file on a server.
I do the same... and yes, this method will work on a server, if you are not placing the details in a database..

Dixie

Re: storing personalization data in a mobile app

Posted: Mon Mar 20, 2017 10:56 am
by UKMC
sorry, this was thought to complicated by me

Problem is solved through file on the mobile's home-Directory as advised in the LC-lessons http://lessons.livecode.com/m/4069/l/14 ... -on-mobile and the forum http://forums.livecode.com/viewtopic.php?f=18&t=2320

Best regards

Ulrich

UKMC wrote:Hi Jean-Marc and Dixie,

thanks for your hints.

Just to ensure that we have the same understanding:

The App is running on a mobile (iOS or Android)
There is no known context about the user (as the phonenumber cannot be read from LC)

How should a server file or database content help identifying the userĀ“?
IMHO, this file (like an .ini) would have to be placed on the phone.

Am I wrong and if yes, could you please give a more detailed comment
If no, how do I work with files on mobiles, I've never done this...

Best regards for your help


Ulrich
Dixie wrote:Jean-Marc wrote...
For one on my apps I use a simple file .txt in a folder of documents folder.
If this file doesn't exist that signify that is the first opening and I open a cd for login and save it.
I use this in local but I think this works with a file on a server.
I do the same... and yes, this method will work on a server, if you are not placing the details in a database..

Dixie