简体   繁体   English

在 Xamarin Forms 和 Azure 中安排推送通知

[英]Schedule push notifications in Xamarin Forms with Azure

I'm pretty new with Azure.我对 Azure 很陌生。 I set up a notification hub in combination with a Xamarin Forms app, this works well with (silent) test notifications.我结合 Xamarin Forms 应用程序设置了一个通知中心,这适用于(静默)测试通知。 Now I have to schedule these notifications, actually infinite, two times an hour.现在我必须安排这些通知,实际上是无限的,每小时两次。 I can't really find any good documentation about this (except some basic information https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-send-push-notifications-scheduled ).我真的找不到任何好的文档(除了一些基本信息https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-send-push-notifications-scheduled )。 What is the best way to accomplish this?实现这一目标的最佳方法是什么? Is there a direct way from Azure? Azure有直接的方法吗? Or do I have to use WebJobs to call an API that resets the notifications every 7 days (maximum if I understood correctly?).或者我是否必须使用 WebJobs 调用 API 以每 7 天重置一次通知(如果我理解正确,最多可以吗?)。

From what I can find you can't schedule anything recurring, you can schedule unlimited, but there is no way to specify a recurrence pattern.据我所知,您无法安排任何重复发生,您可以安排无限制,但无法指定重复模式。 With that knowledge you probably want to have some other system in place that just schedules new notifications.有了这些知识,您可能希望拥有一些其他系统来安排新的通知。

This could be as simple as an Azure Functions that can actually be triggered by using a cron pattern and let that Function schedule the new notification(s).这可以像 Azure 函数一样简单,这些函数实际上可以通过使用 cron 模式触发,并让 Function 安排新的通知。 Other ways are of course just as good, but I think this might be the easiest and cost effective one其他方法当然也一样好,但我认为这可能是最简单和成本效益高的一种

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

相关问题 Xamarin使用Azure Notifications Hub形成推送通知 - Xamarin Forms push notifications with Azure Notifications Hub 带有Xamarin Forms IOS的​​Azure移动约定未收到推送通知 - Azure Mobile Engagment with Xamarin Forms IOS not receiving push notifications Azure App Service推送通知Xamarin Forms iOS - Azure App Service Push Notifications Xamarin Forms iOS 如何以Xamarin形式向特定用户发送Azure推送通知 - How to send azure push notifications to specific user in xamarin forms 通过Azure通知中心使用Xamarin表单在android模拟器上推送通知 - Push notifications on android emulator using Xamarin Forms via Azure Notification Hubs 使用Azure Notification Hub在Xamarin Forms上注册Android设备以进行推送通知 - Registering an Android device for push notifications on Xamarin Forms using Azure Notification Hub Xamarin Forms 使用 Azure 消息集线器在发布模式下不工作的推送通知 - Xamarin Forms Push Notifications using Azure Messaging Hub not working in release mode 订阅Xamarin Forms中的Azure推送通知服务 - Subscribing to Azure Push Notification service in Xamarin Forms 处理Xamarin.Forms中的Android推送通知操作 - Handle Android push notifications actions in Xamarin.Forms 来自 Azure 通知中心的 Xamarin.iOS 推送通知 - Xamarin.iOS Push notifications from Azure Notification Hub
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM