Overwrite User Settings in app

Hi,
I'm wondering if it's possible to modify User Settings from within the app?


Like: app.setProperty("userSetting1", updatedValue);

I tried it but it doesn't seem to be saved when closing the app. Did anyone manage that?