[英]Add push notifications when new articles appear on our database using ionic cloud or firebase?
I have server built on wordpress php and I have website. 我有基于wordpress php的服务器,我有网站。
My website delivers articles to subscribed users. 我的网站向订阅用户发送文章。 Users can subscribe to different articles.
用户可以订阅不同的文章。
Now we have developed ionic app that uses website api to retrieve articles but in mobile app. 现在我们开发了离子应用程序,它使用网站api来检索文章,但在移动应用程序中。
Is there a chance to add push notifications for users when new articles appear on our database using ionic cloud or firebase? 当新文章使用离子云或firebase出现在我们的数据库中时,是否有机会为用户添加推送通知? Is there some tutorial?
有一些教程吗?
Yes really you can do that there is a complete guide in ionic document about Push notification . 是的,你可以做到这一点, 关于推送通知的离子文档中有完整的指南 。 After you integrated push notification according to their document.
根据文档集成推送通知后。 They will provide a token for each device register with push notification.
它们将通过推送通知为每个设备寄存器提供令牌。 You can store them in your database and you can use those token to send push notification when you add a new articles.
您可以将它们存储在数据库中,并且可以在添加新文章时使用这些令牌发送推送通知。 They will provide relevant API end point for do that.
他们将提供相关的API终点 。 You can configure your API end point according to this configurations .
您可以根据此配置配置 API端点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.