Skip to main content
Version: v3

getAllNotifications

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Get the notification IDs that have been sent by the current app and are still in the notification center.

info

permission code: device:os.notification

Type

function getAllNotifications(): Array<number>

Example

import { getAllNotifications } from '@zos/notification'

getAllNotifications()