Currently, I am working my way through the Twilio firebase quickstart tutorial until step 7. This step involves the final push notification test, but I am feeling a little confused about the connection between "identity" and "address". From what I understand, the address is simply the token that was previously received, so I attempted to just register them without using register before.
messaging.getToken()
.then(function(currentToken) {
if (currentToken) {
console.log('Token received: ', currentToken)
const identity = 'myidentity'
const address = currentToken
register(identity, address)
}
})
However, I encountered an issue where the register function expected the type "Hooks" instead of a string (the error message stated "Argument of type 'string' is not assignable to parameter of type 'Hooks | undefined'.Vetur(2345)").
What could I be missing in this scenario?