20.3.7 Pushing Notification from Business Logic

Send push notifications from PL/SQL business logic with APEX_PWA.SEND_PUSH_NOTIFICATION.

The equivalent code to send the same push notification from an Execute Code page process looks like this. Use optional parameters p_target_url and p_icon_url to override the defaults.

apex_pwa.send_push_notification(
   p_user_name => :P11_USERNAME,
   p_title     => 'Need a Chuckle?',
   p_body      => :P11_RANDOM_CHUCKLE));