flutter_hardware_buttons icon indicating copy to clipboard operation
flutter_hardware_buttons copied to clipboard

How to detect Longpress of hardware button

Open griotdonation opened this issue 5 years ago • 1 comments

I’m trying to detect whether a user of my app is attempting to hard reboot their phone (iOS) in attempt to cheat the score in the app. Once a long press is detected I will like to run some code. Is this possible?

griotdonation avatar Jan 29 '20 13:01 griotdonation

I need that same functionality. Any suggestion?

gabrielrodrigodesbesell avatar Feb 19 '21 12:02 gabrielrodrigodesbesell