Add the code below to your project to save the Token to Visilabs.
Code Block | ||
---|---|---|
| ||
addEventListener('register', async (token) => {
console.log('token is ', token)
visilabsApi.register(token, (result) => {
})
}, (notificationPayload) => {
console.log('notification payload', notificationPayload)
}, euroMessageApi, visilabsApi) |
Ui button | ||||||
---|---|---|---|---|---|---|
|