AlarmManger is not firing in XIAOMI
phones when app is in killed state, It is working fine in foreground state, after killing its not triggering at all.
final AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent(context, LocationUpdaterService.class);
final PendingIntent wakeupIntent = PendingIntent.getService(context, 0,
intent, PendingIntent.FLAG_UPDATE_CURRENT);
final int INTERVAL = 1000 * 60;
final int DELAY = 5000;
alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, DELAY,
INTERVAL, wakeupIntent);
I referred this answer Answer. But not solve the problem.
Is there any other solution for this problem?