Take picture is not working on mobile

I am in the process of building a PWA and need an option to take pictures via smartphone.    I have tried to implement this via a nanoflow call with the “Take a picture” activity On the smartphone I get an error message and in Studio Pro I get the message "Media devices are not supported. I have used the take picture activity which is present in the web action module but still, l am getting the same error message {Media devices are not supported.}  
1 answers

Would this be the solution? https://forum.mendix.com/link/questions/111137