Create a lock screen application on Flutter for iOS and Android, I want the application to work in the background, i.e. When you enable the phone screen “closed” the PIN input window of my application, how can this be done?
Answer 1
You can use the fgbg . It allows you to track when the application “falls asleep” and wakes up “including after locking the screen. Put the sheet meter to the corresponding event and call the PIN code input window.
In my opinion, this is the optimal solution of your question.