Comments (4)
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.
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.
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:
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.
I've found the fix for this - pull request in #19.
from modizer.
Related Issues (20)
- MOD format crashes visualization HOT 3
- Attempting to play SSF file results in crash HOT 1
- PSF files won't play unless renamed to PSF2 HOT 4
- NSFPlug does not respect infinite playback mode HOT 10
- CLOCK setting no longer respected (as well as missing other options) HOT 2
- Potential Volume Issue with NSFPlay HOT 1
- Opus files and sorting playlists HOT 6
- Skip to next song function no longer working from lock screen and Bluetooth HOT 3
- 3.5 feedback HOT 11
- Support of FLAC audio files HOT 7
- Possible support of custom .WOPL banks for YMF262(OPL3)? HOT 3
- Output midi files after opening the piano keyboard HOT 1
- 3.6 feedback HOT 6
- Support the Android operating system? HOT 1
- Playlists adding more instances of GBS tracks when sorting HOT 6
- Apple Watch Support?
- external assignable channels?? HOT 3
- NSF file issue HOT 3
- USF issues HOT 9
- DKC2 Bass Note Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modizer.