Ale*_*ndr 5 android alarmmanager android-intent android-alarms
Simple demo GitHub project: https://github.com/Try4W/AlarmManagerDemo
On emulators(Android 4.1.1, Android 6):
PendingIntent with AlarmManageradb shell dumpsys alarmIntentadb shell dumpsys alarmIntentOn my device(LeTv One/Android 6):
PendingIntent with AlarmManageadb shell dumpsys alarmIntentadb shell dumpsys alarmIntentIf I add my app to 'protected apps' Intent not removed after removing app from recent apps.
BUT! On my device AliExpress's app post notification without adding to 'protected apps'.
Note: alarm scheduled without problem on BOOT_COMPLETED
How did they achieve that?
What I already tried:
alarmManager.setAlarmClock(...)setExactAndAllowWhileIdle(...)BroadcastRecieverService running in separated process在某些(大多数)设备上,从最近使用的应用程序列表中滑动应用程序与从设置屏幕中Android滑动应用程序相同。force-closingApps
Android假设这意味着用户不希望从此应用程序进行任何活动,直到另行通知为止,这意味着由用户手动启动该应用程序。
请参阅:当应用程序强制关闭时,AlarmManager 不起作用
| 归档时间: |
|
| 查看次数: |
1749 次 |
| 最近记录: |