React-native-push-notification: Do scheduled local notifications require the app to be opened?

Created on 6 May 2020  路  6Comments  路  Source: zo0r/react-native-push-notification

Question

Do scheduled local notifications require the app to be opened?

  1. Schedule local notifications (Android or IOS).
  2. Close app.
  3. Nothing happens - no notifications.
  4. Open the app - The user receives all scheduled notifications from the period when the app was closed.

Is there a way to receive local notifications even when the app is closed? 馃

Most helpful comment

Hi,
Everything is ok for me, can wait tomorrow but maybe you have a battery saving activated or something that postpone the notification.
Android can change the time in some conditions, allow idle might be required if the notification is strictly required at the exact time. Such as important calendar event.

All 6 comments

Hi!
Can you provide more information such as version, configuration, manifest... ?
This can help to debug 馃槈

Hi!
Versions:

"@react-native-community/push-notification-ios": "^1.2.0",
"react-native-push-notification": "3.3.1",
"react-native": "0.59.9",

Test device:

Samsung galaxy S10

AndroidManifest and other configurations are exactly the same as this provided in readme.md.

To schedule notifications, I am using localNotificationSchedule function.

Hi @kamilklyta
I will take a look at this, I could have seen this behaviour on my App too, but after one day...
I will come back to you ASAP.

Hi,
Everything is ok for me, can wait tomorrow but maybe you have a battery saving activated or something that postpone the notification.
Android can change the time in some conditions, allow idle might be required if the notification is strictly required at the exact time. Such as important calendar event.

Hi @Dallas62.
I accidentally have installed: react-native-push-notification package with version 3.1.2. Updating to 3.3.1 solved this issue 馃挭 .

When battery-saving activated, notifications are sometimes postponed even for a few hours, but it's like expected behavior on the Android platform. Besides that everything works perfectly! Thanks for your help 馃檹 and your precious time 馃檹 馃槂 .

馃帀馃帀馃帀

Was this page helpful?
0 / 5 - 0 ratings