简体   繁体   English

使用离子云或firebase在我们的数据库中显示新文章时添加推送通知?

[英]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.

相关问题 使用 Cloud Functions for Firebase 发送推送通知 - Send push notifications using Cloud Functions for Firebase 当应用程序在带有 firebase 的后台时,使推送通知显示为弹出 - Make push notifications appear as pop up when app is on background with firebase Ionic.cloud的Ionic推送通知 - Ionic Push Notifications with Ionic.cloud 尝试在 Android 和 Retrofit2 中发送推送通知的发布请求时,从 firebase 云数据库获取 400 个错误请求 - Getting 400 bad request from firebase cloud database when attempting to send post request for push notifications in Android and retrofit2 Firebase 云消息推送通知给出错误 - Firebase Cloud Message Push Notifications giving errors Firebase 云消息推送和应用内通知 - Firebase Cloud Messaging Push and In-app notifications 在 Android 上使用 Firebase Cloud 的 Adob​​e Phonegap 推送通知 - Adobe Phonegap Push Notifications with Firebase Cloud on Android 在 Android 应用程序中未收到 Firebase 云推送通知 - Not receiving Firebase cloud push notifications in Android app 没有Firebase云消息传递的推送通知 - Push Notifications without Firebase Cloud Messaging 使用离子推送的多个推送通知 - Multiple push notifications using ionic push
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM