ios - ios8: any method called prior to an app quitting? -
this question formulate action plan.
background: cannot count on silent pushes app not running. need know recent presence of app running, without repeatedly posting database. ideally, when app running, irrelevant app responds properly, when force-quit, have not reference when happened.
in ios8, seems have no guaranteed method hook allow ensure can thing prior app being shut-down. hooks can figure manage enter background or when resign active mode. hit db on , on user can re-enter app many times. not ideal.
so question: there other hooks can manage grab last-ditch moment before app force-quit fire off quick async db update?