Scheduled notifications

Heinen, Koert (MEMIC) 1 Reputation point
2021-02-25T19:36:03.443+00:00

Hi all,

I'm pretty new with Azure. I set up a notification hub in combination with Xamarin Forms apps, this works well with (silent) test notifications. Now I have to schedule these notifications, actually infinite, two times an hour. I can't really find good documentation about this (except some basic information https://learn.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? Or do I have to use WebJobs to call an API that resets the notifications every 7 days (maximum if I understood correctly?).

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
295 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,286 Reputation points
    2021-02-25T23:21:24.753+00:00

    Hi @Heinen, Koert (MEMIC) ,

    Thanks for using Azure.

    There is currently a limit in extending notification past 7 days. Here is an SO post explaining why the limit exists:

    "Unfortunately, this restriction isn't quite as arbitrary as it seems. It's coming from an underlying system that Notification Hub uses to park those scheduled notifications that forces that limit, and there is no way to increase that limit.

    So we aren't able to pass along any kind of increase to customers. If you scheduled for longer than that, I believe Notification Hubs would reject the request."

    Hope that helps.

    Best,
    Grace

    0 comments No comments