Hi there,
I'm building a simple top bar app and I'm having issues while using the setter to change the icon:
var client = ZAFClient.init();
client.set('iconSymbol', 'mySymbol')
This works properly when I click the icon of the app.
Then, if I change the manifest to have the app also running on the background:
"location": {
"support": {
"top_bar": {
"url": "assets/topbar.html",
"size": {
"width": "390px",
"height": "450px"
}
},
"background": "assets/topbar.html"
}
},
when loading the page, the console displays an error saying:

The code to change the icon still works properly when opening the app. Is just rejecting that promise when trying to use the code in the background.
I checked and confirmed the client status was ready and the instance created but the error is still present.
Any thoughts on how to make the icon change from the background location?
Thanks in advance,


To confirm I'm following you correctly. You're wanting to update the icon without page refresh or opening the application whenever a new event / incident is received?