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
Asked
Active
Viewed 41 times
2 Answers
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
-
1Yaeh it is flutter plugin, can we do this by using ionic any idea... – Chetan Koppal Mar 18 '20 at 16:54