HubSpot / calling-extensions-sdk

A JavaScript SDK for integrating calling apps into HubSpot.
https://developers.hubspot.com/docs/api/crm/extensions/calling-sdk
MIT License
46 stars 29 forks source link

Permissions for Notifications are denied after some time #155

Closed uso5 closed 11 months ago

uso5 commented 11 months ago

Checklist

Description

When you try to use CTI inside Hubspot after some time Iframe has declined Notification permission (see screenshot). This happens for our app only inside Hubspot environment and we are not able to reproduce it always. This sometimes happens when you reload iframe. Maybe question here would be: Is Hubspot somehow disabling permissions for Notifications inside CTI?

Expected behavior

Iframe should have always Notification permission granted.

To Reproduce

  1. Go to Hubpost interface
  2. Show CTI
  3. Try to reload iframe
  4. After some time (not always) permissions are denied

Screenshots/source code

Screenshot 2023-11-06 at 09 14 11

Additional context

N/A

esme commented 11 months ago

Hey @uso5 Thanks for reporting the issue in a new ticket. Will test this in CloudTalk CTI next week and get back to you.

esme commented 11 months ago

@uso5 I don't believe we are disabling notifications within the CTI. Does this error only show up after an iframe reload? I have been unable to reproduce it using our Demo Widget.

uso5 commented 11 months ago

@esme in the end it looks like the issue was on our side. Thank you very much for your support :)