1. Marcin Jurkowski
  2. PowerServer Mobile
  3. Monday, 15 July 2019 09:57 AM

Hello

I would like to save some local settings (e.g. username) on the mobile device that are NOT overwritten when the application is updated (and after reboot).

For example when I'm working with Xamarin I can use Properties Dictionary to store data on the device: https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/app-fundamentals/application-class#Properties_Dictionary

What's the best way of doing the same with Appeon Mobile?

Update 16/07/2019:
Today I have tested saving settings in the INI file under Cache directory. This didn't work as all the settings were overwritten after new deployment.

The only idea I have in mind is to use the of_getdeviceid() function and save user settings in the DB if Appeon doesn't have a method to save data on the mobile device permanently?

Regards,
Marcin

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 July 2019 20:40 PM
  2. PowerServer Mobile
  3. # Permalink
1
Votes
Undo

Hi Marcin;

   You have a few choices for this when using PowerServer, as follows:

1) Copy the deployed INI under another name and use that instance for your Apps. When a new INI is deployed, restore the previous values from the copied INI (if exists)

2) Store the User Settings in a DB Table               // - OR my favourite - ....

3) Use the "Registry Emulation" feature. PowerServer keeps the registry as an XML file but on PowerServer server itself and not the mobile device. So any new deployment of your Mobile App does not affect the "Registry xml" file on the PS server.

HTH

Regards ... Chris

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.