Ionic PWA how to handle installbeforeprompt


#1

Hi, I am developing a PWA and I want to defer the default app install banner event. In the index.html file I called the installbeforeprompt event. Now how can i access the JS variable in the typescript file to trigger back the event. Is this the right way or we can handle it in some other way. Please suggest. Thanks


#2

Finally found a solution by declaring the javascript variable inside the typescript file as
delcare var VARIABLENAME : any;