Recent searches
No recent searches
Issue with popovers in hidden Top Bar apps (ZAF)
Posted Jul 26, 2024
Summary
When invoking a popover from a hidden top bar app, the popover never shows even though the code up to that point successfully runs.
Context
A few months ago we deployed a hidden top bar app in Zendesk that listens for a notification from ZIS, invoking a a popover to act as an in-Zendesk notification.
This app used to work perfectly but something has changed, which means that the app icon must be visible in the top bar before a popover can be shown. When the app icon is hidden, the code runs and we can output data to the console, but no popover is shown. There are also no app conflicts because we isolated the app in our testing.
Workaround
From our testing, we identified that the app icon must be visible in the top bar before we can show the popover. This means that we programatically have to show the top bar app icon, then launch the popover, hiding the popover and app icon once the notification is dismissed.
We've reached out to Zendesk Support on this who advised that we raise this here. Has anyone else experienced this and can anyone provide a solution outside of the above workaround please?
1
3 comments
Davor Japunčić
Hey – there's been a few changes with API and other whatnots.
Me thinks this is causing your troubles: https://developer.zendesk.com/api-reference/apps/apps-support-api/top_bar/
The documentation now specifies the need for the app icon to be visible to ensure that the
popover
API functions correctly. Additionally, thepreloadPane
action is highlighted as a method to manage the insertion of app panes into the DOM in advance, providing better control over iframe management.Now, for popovers to be shown, the app icon in the top bar must be visible. If the app icon is hidden, the popover will not appear despite the code running successfully up to that point.
0
Davor Japunčić
'
0
Kyle Taylor
Solving as we've applied the workaround to our app, thank you for the help!
0