[Camera Plugin] TakePicture method does nothing on PWA
camera-plugin
Mobile icon
Forge component by Platform Maintenance
Application Type
Mobile
Service Studio Version
11.53.29 (Build 61709)
Platform Version
11.17.1 (Build 36834)

Hi,

I have the same issue described in the post, https://www.outsystems.com/forums/discussion/82780/, but I cannot use the workaround mentioned there which is to use native mobile app instead of PWA.

When tapping a "TakePicture" on mobile Chrome, Camera doesn't launched so nothing happens. When checking console of debug tool of web browser, I can see following error. 

-------------------------------------------------------------------------

CameraPlugin.controller.js?J5fjKq5ZKl5oL61wnp_RCw:2371 Uncaught (in promise) ReferenceError: WebCamera is not defined
    at startCamera (CameraPlugin.controller.js?J5fjKq5ZKl5oL61wnp_RCw:2371:18)
    at CameraPlugin.controller.js?J5fjKq5ZKl5oL61wnp_RCw:2375:1
    at new Promise ()
    at CameraPlugin.controller.js?J5fjKq5ZKl5oL61wnp_RCw:2341:8
    at Controller.safeExecuteJSNode (Controller.js:339:1)
    at Controller.safeExecuteAsyncJSNode (Controller.js:354:1)
    at CameraPlugin.controller.js?J5fjKq5ZKl5oL61wnp_RCw:2060:19
    at d (Flow.js:84:1)
    at f (Flow.js:56:1)
    at Object.m [as executeAsyncFlow] (Flow.js:124:1)

-------------------------------------------------------------------------

And this only occurs when the version of Camera Plugin is 7.1.12. When I downgrade it to 7.1.11, the Camera launched as expected.

Does anyone know how to fix it?

Best regards,
Ron

Solution

Hello  @Ron WATANABE,

There has been a new release of the Camera Plugin (7.1.13, Under Development). This version should fix the problem you're having.

Best Regards,

Marta

That would be great!

Thank you, Marta.

Solution

Camera Plugin v7.1.14 no more has this issue. 

Hi Ron,

you can use this forge here, I think it's works fine in mobile chrome


regards,

Somnath V

Hi @Somnath V 

Thank you for the information. The forge seems to be based on Camera Plugin V6.2.0 and hasn't been updated for over a year. I'm afraid of having other bugs which had already fixed in the Camera Plugin, so I prefer using Camera Plugin V7.1.11 to using Camera Plugin Advanced.

But again, thank you for the information.

Best regards,
Ron

Solution

Hello  @Ron WATANABE,

There has been a new release of the Camera Plugin (7.1.13, Under Development). This version should fix the problem you're having.

Best Regards,

Marta

That would be great!

Thank you, Marta.

Solution

Camera Plugin v7.1.14 no more has this issue. 

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