47.6 UNSUBSCRIBE_PUSH_NOTIFICATIONS Procedure
This procedure unsubscribes a user from the push notifications of an application.
Syntax
APEX_PWA.UNSUBSCRIBE_PUSH_NOTIFICATIONS (
p_application_id IN NUMBER DEFAULT [current application id],
p_user_name IN VARCHAR2 DEFAULT [current user],
p_subscription_interface IN VARCHAR2 DEFAULT NULL )
Parameters
Parameter | Description |
---|---|
p_application_id |
ID of the application that has the push subscription. |
p_user_name |
Username of the user that has the push subscription. |
p_subscription_interface |
Subscription object (JSON) generated from a browser. If provided, it will only unsubscribe this subscription. If not provided, it will unsubscribe all subscriptions. |
Example
The following example unsubscribes a user from push notifications. This is usually used in conjunction with APEX JavaScript API apex.pwa.unsubscribePushNotifications
and apex.pwa.getPushSubscription
that can generate the subscription object.
BEGIN
apex_pwa.unsubscribe_push_notifications;
END;
Parent topic: APEX_PWA