christocracy/cordova-plugin-background-fetch — pull request #14 by keekerdc (2014-11-17 19:39:45+00:00)
Title: fixing finish failsafe timeout

- Move 25-sec timeout for stopBackgroundTask into onFetch, setting up
finish fail-safe when background thread starts.
- Call stopBackgroundTask right away when the javascript signals to
finish, using an NSTimer set to 0 instead.

Addresses problem discussed in #13.