forked from dotnet-presentations/blazor-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push notifications where not showing up on Safari. This was due to a
restriction from Apple and has been discussed in this issue: web-push-libs/webpush-java#201 (comment)
- Loading branch information
Tobias Ladner
authored and
Tobias Ladner
committed
Jun 5, 2024
1 parent
bb345a1
commit 97de545
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ private static async Task SendNotificationAsync(Order order, NotificationSubscri | |
var privateKey = "OrubzSz3yWACscZXjFQrrtDwCKg-TGFuWhluQ2wLXDo"; | ||
|
||
var pushSubscription = new PushSubscription(subscription.Url, subscription.P256dh, subscription.Auth); | ||
var vapidDetails = new VapidDetails("mailto:<[email protected]>", publicKey, privateKey); | ||
var vapidDetails = new VapidDetails("mailto:[email protected]", publicKey, privateKey); | ||
var webPushClient = new WebPushClient(); | ||
try | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ private static async Task SendNotificationAsync(Order order, NotificationSubscri | |
var privateKey = "OrubzSz3yWACscZXjFQrrtDwCKg-TGFuWhluQ2wLXDo"; | ||
|
||
var pushSubscription = new PushSubscription(subscription.Url, subscription.P256dh, subscription.Auth); | ||
var vapidDetails = new VapidDetails("mailto:<[email protected]>", publicKey, privateKey); | ||
var vapidDetails = new VapidDetails("mailto:[email protected]", publicKey, privateKey); | ||
var webPushClient = new WebPushClient(); | ||
try | ||
{ | ||
|