Skip to content

Commit

Permalink
Merge pull request #72 from signalwire/joao/ws_incoming_calls
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
jpsantosbh authored Mar 13, 2024
2 parents bc0bf30 + a4406da commit 7198869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async function enablePushNotifications() {
deviceType: 'Android', // Use Android w/ Firebase on the web
deviceToken: token,
})
client.online({pushNotification: __incomingCallNotification})
client.online({incomingCallHandlers:{pushNotification: __incomingCallNotification}})
pnSecretKey = push_notification_key
console.log('pnSecretKey: ', pnSecretKey)
btnRegister.classList.add('d-none')
Expand Down Expand Up @@ -560,7 +560,7 @@ window.toggleAvaliable = async () => {
}

if(isOn) {
window.__client.online({all: __incomingCallNotification})
window.__client.online({incomingCallHandlers: {all: __incomingCallNotification}})
} else {
window.__client.offline()
}
Expand Down

0 comments on commit 7198869

Please sign in to comment.