216
Views
6
Comments
How to check if the running application is web app or a mobile app
Question
Application Type
Mobile

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 ?

2021-03-05 13-56-11
Ricardo Pereira
 
MVP

Hi,

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

UserImage.jpg
you asen

Yes, I tried this, it always returns False,


2025-10-18 11-13-53
Ramesh subramanian

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

UserImage.jpg
you asen

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

2024-12-02 12-15-17
Aravind EONE

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.

  1. Install this plugin on your environment.
  2. Take dependency of the highlighted action into your module.
  3. You can check like this and it works.


I hope this will help. Thanks.

2024-12-02 12-15-17
Aravind EONE

Hi @you asen , If any solution you are finding as helpful. you can mark as solution.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.