flutter-moum / flutter_hardware_buttons

Flutter plugin for detecting all hardware buttons
MIT License
37 stars 47 forks source link

How to detect Longpress of hardware button #45

Open griotdonation opened 4 years ago

griotdonation commented 4 years ago

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?

gabrielrodrigodesbesell commented 3 years ago

I need that same functionality. Any suggestion?