AlarmManager is not triggered when App is closed

后端 未结 3 725
臣服心动
臣服心动 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:56

    The alarm manager doesn't trigger the Intent services on certain phones. I was testing the app on a Oneplus 3T the entire day before I realized there was nothing wrong with the code. Just tested the same app on a Moto G, and it works as expected.

提交回复
热议问题