Reload iOS Settings in App

You must Login before you can answer or comment on any questions.

Hey, i wanted to ask if theres a way to reload the settings when changes in the native Setting app are made, without having to restart the App? Somehow force titanium to load the data again on an resume event or something similar.?

Thanks in advance =)

2 Answers

Accepted Answer

Have you tried using the "resume" event to detect when the app gains focus again?

// app.js
Ti.App.addEventListener('resumed', function(){
    // resume event
});
There you should be able to reload the variables you need and even refresh views if needed.

— answered 9 months ago by Matt Berg
answer permalink
1 Comment
  • Nice, i knew the resume event but thought that Somehow Titanium isn't able to fetch the new settings from the settings bundle if the app hasn't been restarted.

    Just gave it a try and it works like a charm =)

    — commented 9 months ago by Moritz Roessler

Hi Moritz, try using resume and resumed event on app level, as explained by Matt, and let me know if any issue in that.

Your Answer

Think you can help? Login to answer this question!