Hi,
I'm using a mobile app as a PWA, the challenge which I'm facing is Outsystems could not tell if the application is running inside a browser on the mobile phone or in a real mobile phone.
in other word, the users use the app from thier phones, they can use it as a PWA(on the brower) or native mobile app.
when I put this condition :
it always display "ok" where the app is running natively or as a PWA.
could you help please ?
Did you already tried to use this OutsystemsUI action:
You can put the "IsRunningAsPWA" to solve your problem, I guess.
Hope this can help.
Best regards,
Ricardo
Yes, I tried this, it always returns False,
Hi you asen,
Based on DeviceType check application running in web app or a mobile app
https://www.outsystems.com/forums/discussion/46029/get-device-type-android-or-ios/
Thanks,
Ramesh
If I use DeviceType and the app is running on the phone as a webapp I will get phone as devicetype, and the same if the app is running natively
Hi @you asen ,Generally PWA's does not support Cordova plugins.
So, we check whether plugin is available or not. If it is available then it is running as mobile app Otherwise it is a browser or PWA. Please find the steps below to implement this.
I hope this will help. Thanks.
Hi @you asen , If any solution you are finding as helpful. you can mark as solution.