简体   繁体   English

在parse.com上安排推送通知

[英]Schedule Push Notifications on parse.com

I've implemented push notification in my android app using parse.com , every time I've to send a notification , I go to parse.com, compose it and send. 我已经使用parse.com在我的Android应用中实现了推送通知,每次发送通知时,我都会去parse.com进行撰写和发送。 I want something like that I can schedule a push notification to be sent daily at a fixed time say 9:00 am.I've read something like that on this website : 我想要这样的事情,我可以安排推送通知每天在固定时间(例如上午9:00)发送。我已经在该网站上阅读了类似的内容:

Sending scheduled push notifications is not currently supported by the Android SDK. Android SDK当前不支持发送计划的推送通知。 Take a look at the REST API, JavaScript SDK or the Parse.com push console. 看一下REST API,JavaScript SDK或Parse.com推送控制台。

By going through REST API and JavaScript sdk , 通过REST API和JavaScript sdk,

https://parse.com/docs/push_guide#scheduled/REST https://parse.com/docs/push_guide#scheduled/JavaScript https://parse.com/docs/push_guide#scheduled/REST https://parse.com/docs/push_guide#scheduled/JavaScript

I got that still it's not possible to schedule a push to be sent daily automatically.We can schedule a single push to be sent later using these services. 我仍然无法安排每天自动发送的推送。我们可以使用这些服务安排一次推送,以后再发送。 Is there any way to implement it? 有什么办法可以实现吗? Thanks for your help! 谢谢你的帮助!

Check out the Parse feature background jobs . 查看“解析功能” 后台作业 It only allows one background job to run at a time, but it should satisfy your requirements as long as they are not too lavish. 它一次只允许运行一个后台作业,但是只要它们不太豪华,它就可以满足您的要求。

You can schedule a background job through the console or via the REST api such as a background job to send out your push notifications. 您可以通过控制台或REST API(例如后台作业)计划后台作业,以发送您的推送通知。 You could schedule them to be sent every so often or at a specific time each day. 您可以安排它们每隔一段时间或每天特定时间发送一次。

Its very simple to use, so hopefully that works! 它非常简单易用,因此希望它能起作用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM