lifecycle_guard_ios 1.0.1
lifecycle_guard_ios: ^1.0.1 copied to clipboard
iOS implementation of lifecycle_guard for mission-critical background execution.
🍎 lifecycle_guard_ios #
The robust iOS implementation for mission-critical background execution.
This package ensures your background tasks get the execution time they need on iOS devices using native BGTaskScheduler APIs.
🎬 Demo #
⚙️ iOS Native Setup #
To allow background execution on iOS, you must configure your Info.plist and app capabilities.
1. Enable Background Modes #
In Xcode, go to Signing & Capabilities -> + Capability -> Background Modes. Check the following:
Background fetchBackground processing
2. Info.plist Configuration #
Add the following keys to your ios/Runner/Info.plist:
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.crealify.lifecycle_guard.background_task</string>
</array>
🦾 Features (iOS) #
- BGTaskScheduler Integration: Official Apple-recommended way for background work.
- Resource Management: Respects iOS system budgets while ensuring critical data sync gets priority.
- Isolate Protection: Boots a lightweight Dart Isolate to handle the task logic.
📄 License #
BSD 3-Clause License — see LICENSE for details.
Built with ❤️ by Crealify