新RSS可用时的通知

时间:2021-08-05 16:59:33

I've created an app that displays an RSS feed. I wonder if it is possible to get a notification when a new rss update. Do I have to use push notification? (have heard that it is difficult)

我创建了一个显示RSS源的应用程序。我想知道是否有可能在新rss更新时收到通知。我必须使用推送通知吗? (听说很难)

2 个解决方案

#1


1  

Yes, push notifications are the way to go. It's not that complicated but you need some infrastructure on your side.

是的,推送通知是要走的路。这并不复杂,但你需要一些基础设施。

You'll need a server with a database that stores all the push notification recipients.
If you only have one hardcoded RSS feed just send a notification to all your clients if a new item is available.

您需要一台带有数据库的服务器,该数据库存储所有推送通知收件人。如果您只有一个硬编码的RSS源,则只有在有新项目可用时才向所有客户发送通知。

If one can add own feeds to the app you need a database which saves the subscribed feeds for each push notification recipient. Then you have to check for new feed entries and send out notifications to the devices that are subscribed to that feed.

如果可以向应用添加自己的订阅源,则需要一个数据库,该数据库为每个推送通知收件人保存订阅的订阅源。然后,您必须检查新的订阅源条目,并向订阅该订阅源的设备发送通知。

There are plenty of tutorials for push notifications out there. Both server and client side.

那里有很多关于推送通知的教程。服务器端和客户端。

#2


0  

depending on the user base of your app, urbanairship.com is probably the easiest way to implement push in your app. With them they handle all server side pushes and you can send a million free push notifications a month.

根据您应用的用户群,urbanairship.com可能是在您的应用中实施推送的最简单方法。有了它们,它们可以处理所有服务器端推送,您可以每月发送一百万个免费推送通知。

So if you add their codebase to you app, you can send 200000 users upto 5 notifications a monthm each.

因此,如果您将其代码库添加到您的应用程序,您可以每个月向每个用户发送最多5个通知的200000个用户。

#1


1  

Yes, push notifications are the way to go. It's not that complicated but you need some infrastructure on your side.

是的,推送通知是要走的路。这并不复杂,但你需要一些基础设施。

You'll need a server with a database that stores all the push notification recipients.
If you only have one hardcoded RSS feed just send a notification to all your clients if a new item is available.

您需要一台带有数据库的服务器,该数据库存储所有推送通知收件人。如果您只有一个硬编码的RSS源,则只有在有新项目可用时才向所有客户发送通知。

If one can add own feeds to the app you need a database which saves the subscribed feeds for each push notification recipient. Then you have to check for new feed entries and send out notifications to the devices that are subscribed to that feed.

如果可以向应用添加自己的订阅源,则需要一个数据库,该数据库为每个推送通知收件人保存订阅的订阅源。然后,您必须检查新的订阅源条目,并向订阅该订阅源的设备发送通知。

There are plenty of tutorials for push notifications out there. Both server and client side.

那里有很多关于推送通知的教程。服务器端和客户端。

#2


0  

depending on the user base of your app, urbanairship.com is probably the easiest way to implement push in your app. With them they handle all server side pushes and you can send a million free push notifications a month.

根据您应用的用户群,urbanairship.com可能是在您的应用中实施推送的最简单方法。有了它们,它们可以处理所有服务器端推送,您可以每月发送一百万个免费推送通知。

So if you add their codebase to you app, you can send 200000 users upto 5 notifications a monthm each.

因此,如果您将其代码库添加到您的应用程序,您可以每个月向每个用户发送最多5个通知的200000个用户。