v0.12.30 add notifications for iOS
This commit is contained in:
@@ -163,7 +163,9 @@ export const api = {
|
||||
|
||||
// Push notifications (FCM)
|
||||
getFirebaseConfig: () => req('GET', '/push/firebase-config'),
|
||||
getVapidPublicKey: () => req('GET', '/push/vapid-public-key'),
|
||||
subscribePush: (fcmToken) => req('POST', '/push/subscribe', { fcmToken }),
|
||||
subscribeWebPush: (subscription) => req('POST', '/push/subscribe-webpush', subscription),
|
||||
unsubscribePush: () => req('POST', '/push/unsubscribe'),
|
||||
testPush: (mode = 'notification') => req('POST', `/push/test?mode=${mode}`),
|
||||
pushDebug: () => req('GET', '/push/debug'),
|
||||
|
||||
Reference in New Issue
Block a user