I’m using the @Push annotation in my view to send updates from the server to the client.
I have noticed that on a fresh session (first visit of a client) the client receives a pushConfiguration with pushMode DISABLED. Only after a reload in the browser, the client receives a pushMode AUTOMATIC.
I’ve done as you suggested and I still get the same issue, sometimes the Push just doesn’t unless I refresh, even after putting it in the Layout class and assigning the layout class to my view. Any other suggestions would be appreciated.
Stephan Grenier:
I’ve done as you suggested and I still get the same issue, sometimes the Push just doesn’t unless I refresh, even after putting it in the Layout class and assigning the layout class to my view. Any other suggestions would be appreciated.
I think I see something similar. Do you also get a “UI not available” exception from your UI.access?
I have resolved the issue. Rather than enabling push in the login view (has route annotation), I move the push annotation to the main app layout (no route annotation) and it is working find now.
Realize this is somewhat old, but I’m running into this problem now. Alejandro (or others), seems like people are having various results depending on which class receives the @Push annotation. Can you advise on best practice?