-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Hi, does anyone know how to set the Urgency option to High in the options? Not sure how I can combine that and vapiddetails, right now I am doing like this
var vapidDetailsObject = new Dictionary<string, string>
{
{ "subject", "mailto:[email protected]"},
{ "publicKey", _publicKey },
{ "privateKey", _privateKey }
};
var options = new Dictionary<string, object>
{
{ "vapidDetails", vapidDetailsObject},
{ "urgency", "high" },
};
await webPushClient.SendNotificationAsync(pushSubscription, payload, options);
And then received error
System.ArgumentException: 'urgency is an invalid options. The valid options areheaders,gcmAPIKey,vapidDetails,TTL'
But according to this link it should be a valid option: https://github.com/web-push-libs/web-push
Saw in the code that it seems hardcoded which options to allow but how can I set urgency to high?
Nickztar
Metadata
Metadata
Assignees
Labels
No labels