javascript - How to hide URL bar on iPhone while using <meta name="apple-itunes-app" to put an ad for app at the top of the page? -


i have mobile web page want put ad ios app @ top of page using apple's meta tag this:

<meta name="apple-itunes-app" content="app-id=myappstoreid, affiliate-data=myaffiliatedata, app-argument=myurl"> 

so added line html. opened web page on iphone , ad there, it's above top of page.

the page uses window.scrollto(0,1) hide url bar on iphone, looks add positioned @ -50px, try window.scrollto(-50,1) ad there , it's not. if click (x) on ad, remembers not show ad again until clear cache.

is there way know if ad showing? or not able hide url bar type of ad?

thanks!

try adding following apple-specific meta tags @ head of html document.

<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> 

with above meta tags, don't think still need call window.scrollto(0,1) hide url bar

refer documentation apple-specific meta tag keys details.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -