AlarmManager is not triggered when App is closed

后端 未结 3 726
臣服心动
臣服心动 2021-01-03 12:07

I have some in-App notification to show to users at a specific time but nothing is shown when the App is closed.

Setting alarm:

Intent alarmIntent =          


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 12:52

    Your device won't allow you to trigger the alarm since it need to save some battery power. So, go to SETTINGS ->Battery/power saver->Apps then choose your app, after that select "no restriction"

提交回复
热议问题