notifications.areNotificationsEnabled()

Type Function
Return value none
Revision Release 2025.3721
Keywords notification, notifications, areNotificationsEnabled
See also notifications.*

Overview

Checks whether push notifications are enabled for the app on the device. Works for iOS and Android. Returns true if notifications are enabled, false otherwise.

Syntax

notifications.areNotificationsEnabled()

Example

local notifications = require( "plugin.notifications.v2" )

local enabled = notifications.areNotificationsEnabled()