Android LocalNotification late

Hi There,

I have been using local notification to alert people. It works pretty well on ios, but on Android S8, the notification sometimes shows up on the exact time but sometimes could be a couple of minutes late. Is it a known issue? is there anyway to set the local notification as the exact time?

thanks,

Lin

Hey @gametimesapp,

Can you provide the relevant code that handles the local notifications in a Snack or code snippet? Also, does this only occur on the S8 device or other Android devices as well?

Cheers,

Adam

Hi Adam,

Sorry for getting back to you late.

I created a snack for it exp://expo.io/@snack/H1h8q5klm

To create the problem,

  1. click on “5 min alarm” to create a delayed notification.
  2. the use the menu key to delete the running app.
  3. notification shows up. compare the time of notification and the targeted time. Sometimes with 1 or 2 minute delay.

for comparison, if the app is running in the background. the notification normally was not delayed.

thanks,

Lin

Hey @gametimesapp,

Your post does not have a link to a Snack project: The link should look something like this: smiling hummus - Snack

Cheers,

Adam

sorry this is the first time for me playing with the snacks.

here it is Delayed Local Notification - Snack

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.