Picture upload from camera (iOS)

#1

Is “mdg:camera” package already actual? We can’t force app to open camera. It opens gallery instead and doesn’t require camera access permission.

We also tried to send files via DDP protocol on Cordova iOS app (iOS 10.3) but we got “WebSocket connection error: Failed to send WebSocket frame”. Without SSL upload works perfectly.

#2

We also tried to send files via DDP protocol on Cordova iOS app (iOS 10.3) but we got “WebSocket connection error: Failed to send WebSocket frame”. Without SSL upload works perfectly.

Can’t speak to first point, but as for websocket frame, you’re looking for this. Last I checked, this was solved in 10.3.3 beta 2. No idea when it will be public


1 Like
#3

Know this is a bit late might help someone else. You might have gotten the issue due to the warning listed on the atmosphere page (if you were running it in the iOS simulator).

“Warning: In the iOS simulator, the device camera is not accessible so you will get an error that says “source type 1 not available.” I’m working on a fallback for iOS that will use the photo library when the camera is not available, but for now just test in your web browser, a physical device, or the Android simulator.”