notifications.getDeviceToken()

Type Function
Return value String
Revision Release 2022.3683
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() )