Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23506

Add event listener for applicationWillTerminate

    Details

      Description

      I have an app that has a background service enabled, the user can elect to get a notification that alerts of the app being killed so that the user can manually restart the app.

      There are some other apps that have this feature, examples are Mile IQ and Kevo (http://stackoverflow.com/questions/22938387/how-to-detect-if-an-ios-app-is-killed-when-it-is-not-in-forground-ios7).

      When the app is about to shutdown iOS seems to call applicationWillTerminate and gives about 5 seconds, which is enough time to trigger a local notification.

      Looking at the Titanium SDK code, you are already listening for this event, it would be great if we could surface it as a Titanium.App.addEventListener('willterminate') event.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              ulizama Uriel Lizama
              Reviewer:
              Angel Petkov
              Tester:
              Abir Mukherjee
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code