111
Views
4
Comments
Solved
[Camera Plugin] [Camera plugin] TakePicture method does nothing on web and PWA
camera-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile
Service Studio Version
11.53.22 (Build 61488)

Hello,

I'm trying to develop a mobile app with a function to take picture from the phone and store them in the local DB. I started with Camera plugin in order to take the picture with a button just like in this tutorial

https://www.youtube.com/watch?v=JDPQWTkBn8s

The thing is, whe i call TakePicture method inside this button workflow, nothing just happens and the workflow suddnely ends after trying to exectute TakePicture (i checked it by debugging with breakpoint and messagges before and after TakePicure is called, messages after the method are never shown).

The following is the flow, ¿any ideas on what can be happening?

I'm working in Outsystems 11 for Mac and tried WAP with and android phone and with an Ipad



2025-04-15 04-00-33
Prakhar Sharma
Solution

I was able to run the application fine on web and successfully upload an image without getting any issues.

However, such plugins are designed for mobile and can show inaccurate behavior when we try to run them on web (based on the knowledge I have). It is always a good practice to generate the debug apk for such mobile applications and run them on your mobile.

UserImage.jpg
Diego Boettiger

Hi Prakhar,


thanks for your answer, i tried directly by installing the APK and it worked fine. 

Im pretty shure that a while ago i was able to take pictures directly using  PWA app but anyway...

At least its working, thanks again.

2022-08-03 04-32-50
Ravi Punjwani

Hi Diego,

Please attach your sample OML file. It might be worth trying out in my environment to debug and see what could be the cause.

UserImage.jpg
Diego Boettiger

Hi Ravi,

Here's the OML, is very small actually. 

I still don't get whats going on, it must be something silly..

Thank you

CameraPluginTest.oml
2025-04-15 04-00-33
Prakhar Sharma
Solution

I was able to run the application fine on web and successfully upload an image without getting any issues.

However, such plugins are designed for mobile and can show inaccurate behavior when we try to run them on web (based on the knowledge I have). It is always a good practice to generate the debug apk for such mobile applications and run them on your mobile.

UserImage.jpg
Diego Boettiger

Hi Prakhar,


thanks for your answer, i tried directly by installing the APK and it worked fine. 

Im pretty shure that a while ago i was able to take pictures directly using  PWA app but anyway...

At least its working, thanks again.

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