React-native-notifee: ScheduleNotification ? [question]

Created on 21 Apr 2020  路  13Comments  路  Source: notifee/react-native-notifee

Hi !

A quick question about scheduled notifications: in the doc there is an empty section about it. Does it mean it's not implemented yet, or does it means it's there but documentation about it is still under progress ?

Thanks !

enhancement

Most helpful comment

Any news on this? Would love to make the switch but I need scheduling for my app..

All 13 comments

Hey, it's still under development. We wanted to get iOS in a stable position first before releasing anything.

Ok ! thanks for the quick answer

Any news on this? Would love to make the switch but I need scheduling for my app..

So the notifications package was removed from react-native-firebase so notifee could make money, but notifee doesnt have scheduling? What are we supposed to do for scheduling local notifications?

Well, that's one way of stating it. I would humanize a touch: the notifications APIs on devices are very difficult to work with, and the package was objectively not being maintained because humans have this thing where they need to eat food, which yes, costs money. Just to ground your comment a bit in a bit less money-grabbing sounding way.

But directly to your point: check out triggers, I believe they are on track for a release very very very shortly (maybe within the day?) - https://github.com/notifee/react-native-notifee/pull/117 which is - to also be human - the result of someone @helenaford work, who I am certain also enjoys purchasing and consuming food using money

:-)

Android now supports trigger notifications. Please take a look at the latest release (v0.11.0).

@helenaford thank you for the good news! As many people are having issues finding out the limitations of scheduled or triggered notifications, could you say if they get triggered when the app is (1) in background or (2) killed or (3) after device reboot? Thanks in advance!

@raphaelrupprecht I think the answer is "yes" to all three! Looks like notifee is using WorkManager under the hood, so it should be able to trigger scheduled notifications in any of the mentioned scenarios.

Very excited to use this new feature

Latest release includes iOS support for trigger notifications. And, there's now two trigger types, TimestampTrigger and IntervalTrigger.

Note, for Android TimeTrigger has been removed. All of this is covered in release notes here.

@helenaford How can i use the repeatInterval with TimestampTrigger. Seems it has been removed in 0.12.1. My use case is I want to trigger a notification in 2 hours and then daily at same triggered time.

Hi, thanks for the question. Sadly, we had to remove it as only Android supported an initial delay. But we do plan on bringing out a daily trigger v.soon so for your use case you would do TimestampTrigger and then the daily trigger.

ok thanks. Also please take consideration into the exact parameter as in the v 5.x of RNFirebase to fire the notification at exact time.

Was this page helpful?
0 / 5 - 0 ratings