IOS camera returns black screen after leaving pwa?

I'm using html file input to open camera and take photos for my PWA. <input type="file" accept="image/*" capture...