26

Is it possible to hide the address bar in iOS 7?

I am currently using the below to do this in iOS 6 but I just updated xCode and tested in iPhone Sim and iOS 7 Safari is not responding to this.

js:

window.addEventListener("load",function() {
    // Set a timeout...
    setTimeout(function(){
        // Hide the address bar!
        window.scrollTo(0, 1);
    }, 0);
});
crowjonah
  • 2,858
  • 1
  • 23
  • 27
Daimz
  • 3,243
  • 14
  • 49
  • 76

1 Answers1

25

It does not work anymore. Here is a very detailed article around the changes in IOS7

valentinvieriu
  • 547
  • 5
  • 9
  • The only workaround at this time is to tell users to download and use Google Chrome as their browser instead of Safari. Chrome allows much better full screen support. – George Filippakos Sep 22 '13 at 12:24
  • 1
    Can you hide the bottom bar? Or is that also off limits? – Daimz Sep 22 '13 at 18:46
  • 3
    The bottom bar it hides automatically as you scroll.But you need to scroll. You cannot force a bigger size of the and hope that the the bar gets hidden. The only solution is to invite the user to add it to Home Screen. There you can have trully a full screen webapp. – valentinvieriu Sep 27 '13 at 17:12
  • 3
    soldgoldrobot's link is only a check to see if the nav and url bar are visible, not a working solution for hiding the nav and url bar. – abelito Nov 17 '13 at 14:24
  • 6
    Coming in iOS7.1 according to the Beta 2 release notes - https://forums.whirlpool.net.au/archive/2194915 – Mark Dec 16 '13 at 17:22
  • @Mark The release notes seem to indicate that is an "iPhone" feature, do you happen to know if this will work on an iPad too in iOS 7.1? – Adam Christianson Jan 08 '14 at 06:50
  • @AdamChristianson The official release of 'minimal-ui' does not support iPad. – Micah Mar 20 '14 at 16:55
  • Use minimal-ui in your viewport. – Paul Jul 16 '14 at 16:10
  • `minimal-ui` no longer works in iOS 8 https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-8.0/#//apple_ref/doc/uid/TP40014223-CH1-SW70 – Chad von Nau Aug 15 '14 at 16:34