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();| Parameter | Type | Required | Description |
|---|---|---|---|
| Nil | Nil | Nil | This action does not require any parameter. |
Structure of Response
| Status | Response |
|---|---|
| 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
- Use this from a bell icon, inbox CTA, or notification empty state.
- Request push permission separately with
Superfans.actions.requestPushPermission()if notifications are disabled.
Caveats
- This action opens the native notifications screen; it does not enable push permission.
- Available notification content depends on the app configuration.
Updated about 7 hours ago
Did this page help you?