Android AlarmManager stops when activity die

前端 未结 9 2141
鱼传尺愫
鱼传尺愫 2020-12-29 07:00

I start AlarmManager with PendingIntent and on few phones Alarm is not responding. On some devices is working ok on others it fails. I have made a few tests on different pho

9条回答
  •  醉话见心
    2020-12-29 07:25

    Could you show us the AlarmReceiver.class code? Maybe you need to use return START_STICKY; on your onStartCommand method?

提交回复
热议问题