I have developed PWA in my angular project, PWA install banner is showing up on the chrome browser by calling the prompt()
event like below,
this.promptEvent = event;
this.promptEvent.prompt();
but sometimes it is throwing an error
The prompt() method must be called with a user gesture.
I couldn't find a solution to this, any help would be appreciated.