notifications.getDeviceToken()

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