Hide mobile address bar

0 favourites
  • 14 posts
From the Asset Store
Make your game more fun and interactive with the Dog Hide and Seek Buttons Sprite Sheet.
  • Hello!

    How to hide the address bar in mobile browsers (iPhone android)?

    I searched the internet and found examples of Java scripts. But I can not figure out where to insert the code. I tried to insert it into the main game class. But the result was not.

    If someone is faced with this decision, or who knows, help me please.

    Thank you!

  • DiscoFish: when you have javascript code specific to some platforms, you can add it to the index.html file, when your game is exported. You nedd to paste it in the <head> section.

  • Are you using a 'fullscreen in browser' mode? The browser should automatically hide its address bar in that case. You might be interested in supporting multiple screen sizes.

  • Sure, I used a 'fullscreen in browser' mode. I used the "scale mode" and "crop mode". I tested it on Android and iPhone. But the result is the same.

    Screenshots from "crop mode"

    <img src="http://dl.dropbox.com/u/38677931/screenshot-1324522241199.png" border="0">

    <img src="http://dl.dropbox.com/u/38677931/screenshot-1324522298754.png" border="0">

    Screenshots from "scale mode"

    <img src="http://dl.dropbox.com/u/38677931/screenshot-1324523209405.png" border="0">

    <img src="http://dl.dropbox.com/u/38677931/screenshot-1324523223421.png" border="0">

    Unfortunately I do not have iPhone, and so I can not take screenshots.

    Can you help me please?

    Please test the example

    Download .capx

    (only the image but I think this is enough to test)

    Thanks!

  • i know that a way to hide the adressbar is by adding the site/app to the homescreen (for iphone), then when you launch it from the homescreen its gone

    im not sure if there is a way to set it automatically

  • Sorry about ressurecting the post, but I?m having the same issue on android 2.3.4.

    Does someone have a fix for this problem?

    Thank you.

  • Ashley, A little bit unrelated, but do any of the native wrappers manage to hide the small black bar with time, battery, etc?

    This is a must for professional looking apps.

  • I think I saw something about this on another topic, it seens you can remove the status bar on phonegap.

    construct.net/en

  • add

    <preference name="fullscreen" value="true" />

    to config.xml

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • where can I find this file?

  • It's in the export folder if you exported to phonegap

  • Ashley, A little bit unrelated, but do any of the native wrappers manage to hide the small black bar with time, battery, etc?

    This is a must for professional looking apps.

    It would be great if "appmobi object" had that action included.

  • Well, it worked great on phonegap, thank you guys!

  • Considering Scirra seems to be aiming more towards Appmobi, it seems important that this feature be available within appmobi also.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)