Skip to content

ruanjx/MPIBackgroundTaskProtection

Repository files navigation

MPIBackgroundTaskProtection

How to use

Drag the UIApplication + MPIBackgroundTaskProtection category files into the your project.

Documentation

In my application, some SDKs don't use the background task correctly, which caused a leak and was killed by the watchdog.

This category hooks three methods beginBackgroundTaskWithName:expirationHandler:, beginBackgroundTaskWithExpirationHandler:, and endBackgroundTask: to ensure that the endBackgroundTask: method is called.

About

A category to avoid background task leak

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published