简体   繁体   中英

Notification shows up in android emulator but not on physical device

I have set a timely notification of 30 minutes using JobScheduler, my app shows the notification in Android Emulator(Pixel 3 API 29 Q-10) after 30 minutes but not on my physical device(Samsung S8 Android 9 Pie). The weird thing is the same notification shows up when I open the app after 30 minutes. Are there any restrictions in android?

I have tried so far:

  • Running app in physical device using USB debugger mode, no errors.
  • Building the APK and installing it in the device separately

I found that, If the phone is in power saver mode or any battery optimized mode the notifications won't show up. Turning off power saver mode worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM