I have created a custom nav_bar app for our unique workflow because views were not working well for us, and we are running into an inconvenience when closing tabs via the 'x' on the tab.
I have a background app running that listens for a ticket save event and in the case where "close tab" is selected it invokes a 'routeTo'... to return the user back to the custom app.
Is there a way to also tell when the 'x' is clicked on the tab to have the same behavior instead of redirecting the agent back to home or views??
Thanks!
When the agent closes the ticket tab, that instance of the ticket sidebar app is destroyed. You can take advantage of this fact for your use case. When the ticket sidebar instance is created, provide that instance to the background location. This will allow the background instance to keep track of the lifecycle of that sidebar instance.