We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59b614 commit 270bdf4Copy full SHA for 270bdf4
docs/09-progressive-web-app.md
@@ -143,7 +143,11 @@ async Task RequestNotificationSubscriptionAsync()
143
Also add the `SubscribeToNotifications` method to `OrdersClient`.
144
145
```csharp
146
-
+public async Task SubscribeToNotifications(NotificationSubscription subscription)
147
+{
148
+ var response = await httpClient.PostAsJsonAsync("notifications/subscribe", subscription);
149
+ response.EnsureSuccessStatusCode();
150
+}
151
```
152
153
You'll also need to inject the `IJSRuntime` service into the `Checkout` component.
0 commit comments