I haven't managed to correctly hide address bar on iOS 6.1.5 yet. :(
This is my code:
On start of layout:
- Browser: Execute Javascript
"if (!document.getElementById('space')) {
var space = document.createElement('div');
space.style.height = '60px';
space.style.clear = 'both';
space.id = 'space';
document.getElementsByTagName('body')[0].appendChild(space);
}"
- Browser: Execute Javascript
"if (window.location.hash.indexOf('#') == -1) {
setTimeout(function(){
window.scrollTo(0, 1);
}, 0); }"
This works when I open Safari on my game's page. But after I refresh the page, the address bar still hides, but the canvas doesn't fill all available space, but I get a blank border of 60 pixels at the bottom.
Here are two pictures showing you what I mean:
When I open the browser on the page
<img src="https://dl.dropboxusercontent.com/u/36601350/scirra-hide-bar-before.png" border="0" />
After I refresh the page
<img src="https://dl.dropboxusercontent.com/u/36601350/scirra-hide-bar-after.png" border="0" />
Any ideas?
Thank you again!