通知显示在 android 模拟器中,但不显示在物理设备上

Notification shows up in android emulator but not on physical device

我使用 JobScheduler 设置了 30 分钟的及时通知,我的应用程序在 30 分钟后在 Android 模拟器(Pixel 3 API 29 Q-10)中显示通知,但在我的身体上没有设备(三星 S8 Android 9 派)。 奇怪的是,当我在 30 分钟后打开应用程序时,会出现相同的通知。 android有什么限制吗?

到目前为止我已经尝试过:

我发现,如果 phone 处于节电模式或任何电池优化模式,则不会显示通知。关闭省电模式对我有用。