Home computickets How to make the application work in the background on Flutter?

How to make the application work in the background on Flutter?

Author

Date

Category

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.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions