samuelclay / NewsBlur

NewsBlur is a personal news reader that brings people together to talk about the world. A new sound of an old instrument.
http://www.newsblur.com
MIT License
6.83k stars 995 forks source link

Refreshing RSS feeds on iOS & iPadOS #1692

Open coopercollins opened 2 years ago

coopercollins commented 2 years ago

Hello,

I wanted to suggest possibly a new way of refreshing RSS feeds in the background even though your app has been force quit.

I would like to draw your attention to the following list of alarm clock apps: Alarm Clock Pro by Handy (Notifications) Alarm Clock - Alarm & Weather by Handy Inc (Notifications) FlipClockPro by 翠玲施 (Notifications) Loud Alarm Clock ULTRA by Infinite Wave Media, LLC (Notifications) Alarm Clock: Music Sleep Timer by DylogicApps Pt Ltd (Notifications) Alarm Clock Pro - Music, Sleep by DylogicApps Pt Ltd (Notifications) Alarm Clock Radio Plus by Philip Bailey (Notifications) Alarm Clock Radio by Philip Bailey (Notifications) Nightstand Central Alarm Clock by Thomas Huntington (Notifications) Alarm Clock for Me - Wake Up! by Apalon Apps (Notifications + Background App Refresh) Alarm Clock for Me by Apalon Apps (Background App Refresh)

So there is a mix of alarm clock apps with either: notifications background app refresh notifications + background app refresh and with all these alarm clock apps you can set an alarm, force quit the app, lock your screen and then when the time comes an alarm is sounded and a notification is displayed.

Would it be possible to duplicate this functionality? So your RSS app sets an alarm and when it is woken up it checks/updates/refreshes the RSS feeds and sends a notification if there are any new items in your subscribed RSS feeds but no alarm sound goes off just a normal notification sound and then your RSS app automatically sets the next alarm to repeat the process. The alarm interval or in this case the refresh interval should be able to be set by the end user.

Kind regards, Cooper

samuelclay commented 2 years ago

Well we do have notifications already and they are sent in real-time. Are you saying you want to queue up notifications to be sent at a certain time? Notifications are sent by the NewsBlur servers, since that's where the feed fetching is happening. Your phone simply caches the stories offline.

I believe that offline caching isn't working perfectly and I'd love to hear from @dejal if you can highlight some of the code paths (linking to the github source, since we're here) that handle background refreshes.

So are you asking for an option to queue notifications for a set time, since they're already being sent when the stories are first published.