1

I want to run my application in background and when the volume buttons are pressed (a specific combination) then my application would open.

madhead
  • 31,729
  • 16
  • 153
  • 201

1 Answers1

1

Android?

There is no need to "run the application in background". What you can do is register a receiver on android.media.VOLUME_CHANGED_ACTION event and then use method channels to convey the event from the native part of the app to Flutter. However, note that android.media.VOLUME_CHANGED_ACTION is not documented and you should use it with caution.

madhead
  • 31,729
  • 16
  • 153
  • 201