storing personalization data in a mobile app

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

storing personalization data in a mobile app

Post by UKMC » Sun Mar 19, 2017 6:08 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2005
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: storing personalization data in a mobile app

Post by jmburnod » Sun Mar 19, 2017 11:24 pm

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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: storing personalization data in a mobile app

Post by Dixie » Mon Mar 20, 2017 12:30 am

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

UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Re: storing personalization data in a mobile app

Post by UKMC » Mon Mar 20, 2017 10:01 am

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

UKMC
Posts: 50
Joined: Sun Jan 08, 2017 12:01 pm

Re: storing personalization data in a mobile app

Post by UKMC » Mon Mar 20, 2017 10:56 am

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

Post Reply

Return to “iOS Deployment”