I'm making alarm app using android alarm manager
in flutter.
Alarm is correctly working by using this hack. But there is problem that some device doesn't launch my app when alarm is fired on background.
For example, When set the alarm and click home button, just callback
function has been called, app hasn't been launch.
Using Samsung s8
, app is launched when alarm is fired.
But emulator sdk_gphone_x86_arm
and Samsung s10
doesn't launch app.
I want to make google's alarm app, but some device doesn't launch app. what is problem?
Finally, I find solution using few days!!
Android 10.0(Q) prevent to start Active
in background. You can see document here.
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
Setting
-> Apps & notifications
-> Your flutter app -> Advanced
-> Display over other apps
)