notifications.getDeviceToken()

Type Function
Return value String
Revision Release 2024.3703
Keywords notification, notifications, subscribe
See also notifications.*

Overview

Returns the Firebase device token currently assigned to the device.

Syntax

notifications.getDeviceToken()

Example

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

print( notifications.getDeviceToken() )