question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background/Data-Only Recurring Notifications

See original GitHub issue

Is your feature request related to a problem? Please describe. I’d like to be able to schedule recurring notifications that can be customized before being displayed to the user. Currently recurring scheduled notifications must have a fixed title etc. when they are scheduled, which means one cannot customize them based on the time of day or day of the week they are to be shown.

eg: if you schedule a daily recurring notification, you cannot customize your title or description based on the day of the week or the day of the month.

Describe the solution you’d like I think the easiest and simplest solution is adding a flag in the NotificationRequestSchedule class that signals the recurring notification as a “background” or “data-only” notification, meaning that it will not attempt to display any notification, only invoke the NotificationReceived event. The NotificationId and ReturningData already provide enough user-provided info needed for filtering. This means a customized notification can be generated in the receive handler without the need to manually chain non-recurring scheduled notifications.

Describe alternatives you’ve considered The only feasible alternative is cloning of this plugin’s scheduling infrastructure to generate the events myself, although doable, it just creates more surface area for bugs.

Additional context I want to schedule daily recurring notifications for users to read certain articles. The article they will be directed to differs based on the days of the month. Being able to give the user a small preview of the article in the notification provides a massive boost in engagement, but currently cannot be done through the scheduled notification system.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Necroliscommented, Nov 3, 2021

@thudugala I’ll update it in a few hours when I get off work 😃

1reaction
Necroliscommented, Nov 3, 2021

@thudugala Looks like it should work well, however having the ability to suppress the notification is also rather useful .

Should be trivial to add a check on the return value of the NotificationReceiving event and bail out if it returns null. This should mean that schedules aren’t cancelled when the notification is suppressed either. However I dunno how intuitive that is in terms of usability.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble setting recurring notifications on FindMy with a friend
I am trying to set a recurring notification with a specific friend. I am using a iPhone 8 with iOS 14.0.1, while the...
Read more >
System Design: Real Time Location Based Notification ...
If so, app creates notification. Pros: Less server processing. Cons: Does not work with iOS, as background data only messages are not always ......
Read more >
User Guide Guía de
The Notification panel displays. 2. Touch Bluetooth to turn Bluetooth on (green) or off (grey). From Settings. 1. From ...
Read more >
How to deactivate RCS service / Rich Communication on XZ1 ...
Turning on the 'background data only' makes no difference, likewise 'background activity' ... I'll repeat my statement from here, that:
Read more >
allenai/ms2_dense_max · Datasets at Hugging Face
A two-factor repeated- measures analysis of variance ( anova ) was used to ... Summary of Background Data . Only a small number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found