thanks in advance for the help. I've looked everywhere and I couldn't find a proper way to check this.
I've installed the ionic PWA and try to check the platforms to determine if the app is install or not. For mobile is ok, because I can check:
if ((!this.platform.is('pwa') && this.platform.is('mobile'))) {...}
BUT for desktop I don't have a way to know if the app is install on the device or not...(as "PWA" doesn't seems to work when the device is not a mobile one)
Meaby I'm missing something out of this docs: https://ionicframework.com/docs/angular/platform THANKS very much :)
Thanks Mostafa Harb! You've pointed me in the rigth direction! For those who wants to check if the user is accesing via the desktop and the app is not installed (at least with Ionic 5 version...), you can do:
const isPWAInstalledOnDesktop: boolean = document.getElementsByClassName('plt-pwa').length > 0;
If(!isPWAInstalledOnDesktop && this.platform.is('desktop')){...}