getAutoStartPermission function
It navigates to settings => auto-start option where users can manually enable auto-start. It's not possible to check if user has turned on this option or not.
Implementation
Future<void> getAutoStartPermission() async {
try {
await _channel.invokeMethod("permit-auto-start");
} catch (e) {
print(e);
}
}