Vaadin Flow OSGI example does not work with push

  1. When activating push in Vaadin Flow OSGI example (https://github.com/vaadin/base-starter-flow-osgi), I am getting an error that the vaadinPush.js could not be found.
@Push
@Route("")
@PWA(name = "Project Base for Vaadin Flow", shortName = "Project Base")
public class MainView extends VerticalLayout
{

  public MainView()
  {
    Button button = new Button("Click me", event -> {
      Notification.show("Clicked!");
    });
    add(button);
  }
}

It seems flow-push.jar is not registering the vaadinPush.js to make it available in the OSGI whiteboard.

  1. When I am adding the missing VAADIN/static/push/vaadinPush.js to my bundle directly (src/main/resources), it is found, but it starts cycling endlessly with showing error message: endRequest is called when no request is active

17481896.jpg

Hi,
we have not tested yet Push functionality in OSGi and it’s pretty possible that it’s not working.

Could you please create a ticket for that ?

Hi Tom,

I see the exact same issue (point 1 and 2). Did you already create a ticket?

Kind regards,
Bram

https://github.com/vaadin/flow/issues/5081