Toblerone
Posts: 0
Joined: Wed Aug 07, 2013 5:08 pm

are settings persisted?

Hi all,

When i create a settings service, i can populate parameters in there fine, in-between app loads in web + tester on device I can see the settings.

However, if I change a setting from my app, i.e going

MySetings['someParam'] = somevalue

then subsequent loads in the tester the value is reset? Is this just a feature of the tester and when I make an actual build of my app it will persist when the app is reloaded or are settings always reset? If so, why? Surely you'd expect app settings to be persisted?

I know I can use localStorage for saving values, but I want to keep all settings in the settings service and it seems silly that those are not persisted to localstorage if that's not the case?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

are settings persisted?

Hello! Parameters in Service settings refreshes after project reload. Also note that if you make navigation between screens with full refresh then service Settings parameters will be set to default. Settings service is just an object in service.js - ones you reload file this object creates again with parameter's values you've set through builder.

Return to “Issues”