feat(push): smart push queueing with page-visibility fast path and app-ping/pong fallback
This commit is contained in:
+2
-2
@@ -109,10 +109,10 @@ export const api = {
|
||||
vapidPublicKey: () =>
|
||||
request<{ publicKey: string }>('/api/push/vapid-public-key'),
|
||||
|
||||
pushSubscribe: (subscription: PushSubscriptionJSON) =>
|
||||
pushSubscribe: (subscription: PushSubscriptionJSON, deviceId: string) =>
|
||||
request<{ ok: boolean }>('/api/push/subscribe', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ subscription }),
|
||||
body: JSON.stringify({ subscription, deviceId }),
|
||||
}),
|
||||
|
||||
pushUnsubscribe: (endpoint: string) =>
|
||||
|
||||
Reference in New Issue
Block a user