0

I want to send the emergency message by pressing the power button. How can we control the power button of android mobile phones by coding?. In ionic framework

2 Answers2

0

The answer you are searching for is available, check out the following link: How to hook into the Power button in Android?

ssb
  • 97
  • 7
0

There is a plugin called hardware_buttons which will help with your project. here's the link:https://pub.dev/packages/hardware_buttons

Adithya Shetty
  • 1,247
  • 16
  • 30