flutter_hardware_buttons
flutter_hardware_buttons copied to clipboard
How to detect Longpress of hardware button
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?
I need that same functionality. Any suggestion?