How to get Twilio Notify to work with firebase FCM


I am following Twilio firebase quickstart until point 7, which actually includes the final push notification test, but i am a bit confused on the binding between "identity" and "address". In my understanding the address is just the previously received token so I tried to just register them (didn’t use register before to be honest)

messaging.getToken()
   .then(function(currentToken) {
      if (currentToken) {
        console.log('Token received: ', currentToken)
        const identity = 'myidentity'
        const address = currentToken
      
        register(identity, address)
      }
   })

Unfortunately register expects type "Hooks" and not a string (message is "Argument of type ‘string’ is not assignable to parameter of type ‘Hooks | undefined’.Vetur(2345)")

What am I missing?

Source: Vue – Stack Overflow

October 22, 2021
Category : News
Tags: firebase | firebase-cloud-messaging | twilio | Vue.js

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.