Ticket Created
over 5 years ago

WERETECH-7033

Toggle to save app settings in sim

Suggested a way to toggle whether app settings are saved between app runs. Currently, app settings are at least cleared between runs every time the target device is changed, which can make testing cumbersome.

Original post: i can't save app settings for the simulator and have them be used on next run of the simulator anymore - i've tried clearing out as much as i can but nothing i've tried helps..

this makes testing kind of difficult..

  • This is very frustrating for background apps since I use the simulator switching between targets to restart the background process and now it forgets settings if doing that. I can't easily test anymore and so I can't make any releases.

  • For an app where settings are for things like colors, it might be useful, but for things that use OAuth, or in my case 32 character API keys along with things like locations, it's a pain.  ThumbsdownThumbsdown  Maybe a setting in the run config in Eclipse,/command line parameter for the sim, that allow a clear/no clear option?  Or just a setting in the sim itself? There's been an option in the sim to clear these things for some time, where it's easy to clear the settings if you want
  • I had noticed the same issue with the app settings being cleared when changing targets.  I was going to create a post tonight, but will just throw my comments into this one. I agree it is a bad idea, when I did my last update to my widget it took an extra hour to test each device because of needing to re-configure the settings each time I switches the target.  Travis, I agree with you it is a bad idea to make this change.  It really increases the time to test apps where the user has to authenticate or add a key for the app to run.  Please pass along my suggestion to revert back to the previous behavior.
  • I need to look back at the change history, but I'm pretty sure this was by design. I remember some discussion around it and I complained that this was a bad idea because apps that do OAuth need to re-authenticate every time a device switch occurs.
  • I'm seeing something similar, but it seems the settings get cleared when I change targets.  The settings are not cleared if I keep using the same target.