React Native- Register Token
Add the code below to your project to save the tokens to the RMC system.
If you added a listener during Visilabs integration, it will be sufficient to add the 2nd line to the same listener.
addEventListener('register', async (token) => {
euroMessageApi.subscribe(token)
}, (notificationPayload) => {
console.log('notification payload', notificationPayload)
}, euroMessageApi, visilabsApi)
Copyright 2020 Related Digital