Skip to content

Commit

Permalink
Push notifications where not showing up on Safari. This was due to a
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/09-progressive-web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/BlazingPizza.Server/OrdersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 97de545

Please sign in to comment.