0

How do I have my own prompt for the install banner in the PWA APP written in Angular 5. In my component I am able to listen to the event listener like

window.addEventListener('beforeinstallprompt', event => {
            let ev:any = event;            
        });

but how do I get the userChoice property and get the choice after prompt?

Any angular samples would be appreciated!

Sampat
  • 1,301
  • 6
  • 20
  • 34
  • Did you find a solution to your problem? – Outsider Feb 13 '19 at 05:30
  • @ArkaGhosh Check Bonus step 2 in this article...https://medium.com/poka-techblog/turn-your-angular-app-into-a-pwa-in-4-easy-steps-543510a9b626 – Sampat Feb 23 '19 at 06:39
  • Thanks. I posted a question and got an answer with a working solution. You can check it out here https://stackoverflow.com/questions/54673405/how-to-intercept-app-install-prompt-in-angular-pwa/54732042#54732042. – Outsider Feb 23 '19 at 10:09

0 Answers0