0

I have prepared demo to receive local notification daily like alarm, but its working in some device and not working in some other device (Like OPPO, MI) when app is not in background not receiving notification.

Can any one please help to provide source code or any reference link to resolve this issue.

Nirav Patel
  • 432
  • 6
  • 19
  • share your code so we can help you fix it – kandroidj Nov 02 '16 at 15:07
  • Hi, I have used this link code. http://www.concretepage.com/android/android-alarm-clock-tutorial-to-schedule-and-cancel-alarmmanager-pendingintent-and-wakefulbroadcastreceiver-example – Nirav Patel Nov 03 '16 at 12:28

1 Answers1

0

Mostly notification working on some devices because of two reasons:

1) If device API level is 6.0+

2) Account Sync not working.

1) If device API level is 6.0+ then you need to write permission handler code Example

2)Account Sync not working. go to settings > then select Google account > and click on Sync button. If on Google account it showing ! this symbol then that means problem is in your device account sync.

Community
  • 1
  • 1
Ganesh Pokale
  • 1,538
  • 1
  • 14
  • 28
  • Local Notification not working is the device with OS 5.1.1 It's only not working when app is not in background. If its in background then receiving notification. – Nirav Patel Nov 03 '16 at 12:57