Android P Beta - AlarmManager Notifications not working

后端 未结 2 1462
自闭症患者
自闭症患者 2021-02-15 17:20

I\'m testing my application on Android P beta release 4. My app\'s targetSdkVersion is 27

It has been observed that alarm manager notifications are not

2条回答
  •  名媛妹妹
    2021-02-15 17:46

    As you yourself mentioned the new App Standby Buckets feature of Power Management is likely to be the cause. The new documentation states:

    If an app is in the frequent bucket [or below], the system imposes stronger restrictions on its ability to run jobs and trigger alarms

    and

    In particular, the bucket determines how frequently the app's jobs run, how often the app can trigger alarms

    Additionally, if you view Power Details you can get a rough idea of the delay times.

    Worth noting is that it appears your bucket is based on average usage (and machine learning) not on current usage - which means even if your app has just been in the foreground, the buckets play some role

提交回复
热议问题