I am making my app with Bubble and using a webview container. I am implementing all of it in XCode.
I have a file uploader element but it only gives me the option to get photos from the device’s folder. I am trying to get access to the camera.
I am making my app with Bubble and using a webview container. I am implementing all of it in XCode.
I have a file uploader element but it only gives me the option to get photos from the device’s folder. I am trying to get access to the camera.
IOS has started supporting access to the camera and Web RTC on web apps/webviews from IOS 11 onwards…
You might perhaps need to update your IOS version?
(You would also need to use the MediaDevices.getUserMedia() method to access your camera)
How do I add the MediaDevices.getUserMedia() method…do I add it in Bubble’s html or do I add it into XCode?
I found something like this…https://stackoverflow.com/questions/46709949/can-i-use-navigator-mediadevices-getusermedia-in-android-ios-webview
Not sure if thats the right one.
You will need to add it into your HTML code.
Check out this from the Mozilla docs also.
Sorry for sounding like an ignorant newbie but do you mean adding it into the HTML code in Bubble (in the header or body?) or in XCode?
Also I just found out that the IOS simulator doesn’t support the camera?..So then there’s no way of me knowing if the camera option will show up and I don’t have an iphone. This is really bizarre to me and now I need to find a way to confirm that the camera option would even show.
This topic was automatically closed after 70 days. New replies are no longer allowed.