Git Product home page Git Product logo

Comments (4)

yoyofr avatar yoyofr commented on September 13, 2024

Hi,

Basically it depends on what is happening when an app is "autoclosed". It just the matter of calling
[detailViewControlleriPhone saveSettings];
[detailViewControlleriPhone updateFlagOnExit]; //the one used to identify clean or dirty exit

Today they are both called when the app is closed "normally". So you just need to know what objective C method
is called and add the 2 lines to exit cleanly.

rgds
ym

Le 9 mars 2012 05:18, Misty De Meo a crit :

Modizer will display its post-crash "reset your settings" prompt after being autoclosed by the OS. In practice, I find this means that most times when I open it I'm asked whether I want to wipe my settings - which I don't! I wonder, is there a better way to handle this?

I'm using an iPod Touch October 2011 with iOS 5.0.1.


Reply to this email directly or view it on GitHub:
#13

from modizer.

mistydemeo avatar mistydemeo commented on September 13, 2024

According to Apple's developer docs, there is no guaranteed method that will be called to notify an app of termination if it's inactive; applicationWillTerminate is only guaranteed if the application is in the foreground and is going to be terminated. An inactive background application may receive a sigkill at any time.

So, updateFlagOnExit should always be set on applicationDidEnterBackground, rather than conditionally as it is right now - that may be all that's necessary to fix this.

from modizer.

yoyofr avatar yoyofr commented on September 13, 2024

HI,

it looks interesting, I need to find time to test this ;-)

rgds,
ym

2012/5/29 Misty De Meo <
[email protected]

According to Apple's developer docs:

http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

There is no guaranteed method that will be called to notify an app of
termination if it's inactive; applicationWillTerminate is only guaranteed
if the application is in the foreground and is going to be terminated. An
inactive background application may receive a sigkill at any time.

So, updateFlagOnExit should always be set on
applicationDidEnterBackground, rather than conditionally as it is right now

  • that may be all that's necessary to fix this.

Reply to this email directly or view it on GitHub:
#13 (comment)

from modizer.

mistydemeo avatar mistydemeo commented on September 13, 2024

I've found the fix for this - pull request in #19.

from modizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.