如何在 ios 中延长 App 唤醒时间

How to extend App wake-up time in ios

我正在使用位置管理器在调用 didExitRegion/didEnterRegion 方法时唤醒我的应用程序。
应用程序正在唤醒,但根据我的测试,它会被唤醒 10 秒。

我想把这个唤醒时间延长到1分钟,可以吗?
请提出建议。

有可能。

您可以通过UIApplication的beginBackgroundTaskWithExpirationHandler:方法延长唤醒时间class.