I want to run my application in background and when the volume buttons are pressed (a specific combination) then my application would open.
Asked
Active
Viewed 70 times
1
-
1Please provide more details. – connecttopawan Jun 04 '20 at 16:58
1 Answers
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