I am using input type file for launching the camera in iOS . The following line of code I am using :
<input type="file" name="select a Picture"/>
When I press the button it shows two option i.e. 1) Take a Picture 2. Choose from the gallery If I select option Choose from the gallery then it launches the native gallery when I select the picture from the gallery then I can see it in the preview , so choose from gallery is working fine .
But the problem is with taking picture using camera . When I Press the take picture it launches the camera but it after capturing the photo it directly goes back to the safari . And there is pop of which shows the following error:
A problem occurred with this webpage so it was reloaded
so how to overcome this issue ?