Android LocalNotification late

#1

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

#2

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

#3

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

#4

Hey @gametimesapp,

Your post does not have a link to a Snack project: The link should look something like this: https://snack.expo.io/H1Jdiik8X

Cheers,

Adam

#5

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

here it is https://snack.expo.io/rygk9xGLQ

closed #6

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