5

I want to know how I can automatically launch a Flutter app once a device boots up. I know It's possible in Native Android apps with java and kotlin but my app is based on flutter.

My use case is that I have an Android Auto like interface app designed for tablets that opens up once the device boots

Dharman
  • 30,962
  • 25
  • 85
  • 135
Junaid Tariq
  • 568
  • 8
  • 22

1 Answers1

0

What you can consider doing here is by pushing a local notification that when clicked, opens the app. App processes can be run in the background automatically by using auto_start_flutter and by requesting for the required permissions using getAutoStartPermission();. Note that this is currently only available for Android.

Launching an app automatically without user consent isn't something that's allowed for security reasons. You may also want to check how apps are developed for Android Auto.

Omatt
  • 8,564
  • 2
  • 42
  • 144