I am developing a Flutter app that needs to automatically start or execute background tasks after the device reboots,
In Android
I successfully implemented this functionality using a MethodChannel to call native Android code, which allows the app to restart and perform tasks after a reboot.
Example Here
However, I am facing challenges implementing the same functionality on iOS
due to its stricter restrictions on background execution and auto-start behavior.
Specifically, iOS does not allow apps to auto-start after a reboot for privacy and battery optimization reasons.
I am looking for a way to achieve similar functionality on iOS, either through background modes, push notifications, or other workarounds.
On Android, I used a MethodChannel to call native code, which works perfectly.
On iOS, I explored background modes like Background Fetch and Silent Push Notifications, but they are unreliable and do not guarantee execution.
I also looked into plugins like workmanager and flutter_background_service, but they either do not support iOS or have limited functionality for auto-starting after a reboot.
I need a way to trigger my Flutter app or execute background tasks on iOS after a device reboot. Are there any workarounds, plugins, or native iOS (Swift/Objective-C) solutions that can achieve this? If not, what are the recommended alternatives for handling tasks that need to run periodically or after a reboot on iOS ?
Any guidance or examples would be greatly appreciated!