I am in the process a building a web app and ran into a problem with iOS 8. Please note this is specific to iOS 8 as it works fine in previous versions.
I have a page that uploads images taken directly from the phone or tablet. I use the following link to call the camera app:
<input type="file" accept="image/*" capture="camera" name="files[]">
The camera app opens as expected and takes the picture with no problem. However when the camera app closes and returns to the web app the screen height is reduced by more then half. There is no way to correct expect for closing and restarting the app.
You can see how it looks after taking the picture here: Screencast
It appears as if the screen remains in landscape. However rotating the device only makes it worse.
I am assuming this is an iOS 8 bug but wondering if anyone has any ideas on how to correct or work around the issue.
One last note, the issue only occurs when running as a web app. When using safari it works.
FYI - here are the meta tags I am using:
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Customize home screen title. -->
<meta name="apple-mobile-web-app-title" content="DigiSite">
<!-- Disable phone number detection. -->
<meta name="format-detection" content="telephone=no">
<!-- Set viewport. -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- Startup images -->
<!-- iOS 6 & 7 iPad (retina, portrait) -->
<link href="http://img.digisite.us/splash.png?w=1536&h=2008&c=<br />
<b>Notice</b>: Undefined index: background in <b>/home5/digisite/public_html/mobile/mobileHeader.php</b> on line <b>22</b><br />
&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPad (retina, landscape) -->
<link href="http://img.digisite.us/splash.png?w=1496&h=2048&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (portrait) -->
<link href="http://img.digisite.us/splash.png?w=768&h=1004&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: portrait)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 iPad (landscape) -->
<link href="http://img.digisite.us/splash.png?w=748&h=1024&c=&n=lumentum"
media="(device-width: 768px) and (device-height: 1024px)
and (orientation: landscape)
and (-webkit-device-pixel-ratio: 1)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone 5 -->
<link href="http://img.digisite.us/splash.png?w=640&h=1096&c=&n=lumentum"
media="(device-width: 320px) and (device-height: 568px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
<!-- iOS 6 & 7 iPhone (retina) -->
<link href="http://img.digisite.us/splash.png?w=640&h=920&c=&n=lumentum"
media="(device-width: 320px) and (device-height: 480px)
and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image">
Thank you in advanced.