Keep Your React Native Apps Alive in the Background
Prevent Android from killing background processes with Wake Locks, battery optimization exemptions, and OEM-specific protections. iOS-safe with no-op implementation.
Quick start
Get your app protected from background restrictions in minutes
Install the package
Import and use wake locks
Request battery optimization exemption
Explore by topic
Everything you need to keep your app running reliably in the background
Wake Lock Management
Battery Optimization
OEM Restrictions
Doze & App Standby
Key features
Wake Lock Management
Keep CPU running during background tasks with partial and screen wake locks.
Battery Exemption
Request Doze mode whitelist to run background tasks more freely.
OEM-Specific Settings
Navigate to manufacturer battery settings for Xiaomi, Samsung, Huawei, and more.
Cross-Platform
iOS-safe implementation with no-op methods that return safe defaults.
TypeScript Support
Full type definitions included for excellent IDE autocomplete and type safety.
New Architecture Ready
Built as a Turbo Module for React Native’s new architecture.
Resources
Usage Examples
Platform Differences
Testing & Debugging
OEM Compatibility
Troubleshooting
FAQ
Ready to get started?
Install React Native Background Guardian and start protecting your app from aggressive battery optimization today.

