Open Notification

Opens the notifications page in the app.

Description

The openNotification() action navigates the user to the native notifications page inside the app.

Function Signature

await Superfans.actions.openNotification();
ParameterTypeRequiredDescription
NilNilNilThis action does not require any parameter.

Structure of Response

StatusResponse
Success{ "status": "success", "message": "Notifications page opened successfully" }
Unexpected Error{ "status": "error", "errorId": 500, "errorHandle": "unknown-error", "message": "Something unexpected happened" }

Example Usage

await Superfans.actions.openNotification();

Best Practices

  1. Use this from a bell icon, inbox CTA, or notification empty state.
  2. Request push permission separately with Superfans.actions.requestPushPermission() if notifications are disabled.

Caveats

  1. This action opens the native notifications screen; it does not enable push permission.
  2. Available notification content depends on the app configuration.

Did this page help you?