How to forcibly show the Smart App Banner on Safari? - ios

I just added a Smart App Banner to my site. It already showed one time, but I want to show it again for development purposes. As Apple says:
When the user returns to the webpage, the banner won’t reappear.
So how do I avoid this "cooldown" that the banner receives?

Related

Is it possible to make the iOS Safari "Additional Permissions Requested" banner re-appear after some time?

I am developing an extension for Safari on iOS. I'm able to trigger the rendering of the Additional Permissions Requested banner when my extension lacks authorization to inject a content script (see screenshot of this banner for the Honey extension).
However, I noticed that after having triggered the banner once, I can only re-trigger in the following 8 minutes (approx). After this time, I am unable to make it appear again.
Is there a specific period to wait before being able to re-trigger the display of the banner?
Screenshot displaying Honey banner:-

How to stop showing AdMob banner ad correctly?

I am building an app which will display AdMob banner ad, and when user successfully purchased an IAP item, the banner ad will never show up again, and the screen area originally occupied by the banner ad will be used by the app real functions.
The question is how to dismiss the bannerView or does not init it on the next launch up? And how to insure AdMob Sdk will never refresh the ad content in the background?
I think we cannot just hide the bannerView with just a statement:
bannerView.isHidden = true
And, as we know, AdMob SDK use IDFA. But Apple will deny an app which use IDFA but not showing Ads.
Google has guides on how to show up ads, but I cannot find information about how to stop showing ads from Google.
How to get this problem out?
The question is how to dismiss the bannerView or does not init it on
the next launch up? And how to insure AdMob Sdk will never refresh the
ad content in the background?
There are multiple ways to do this. One way I can think of is to add multiple targets in your Xcode project.
And the easier way, the more practical way - at least for me, is to prevent the requests for ads through GADRequest().
You can even do this even in AppDelegate, when setting Ids to your SDK.
That's it. You may also set nil to the delegate property of your bannerView.
And like what you've mentioned, just hide the bannerView's container, and everything should be perfect. I've worked on lots of applications with Admob, and I believe there should be no problem doing this approach.

how to check if smart app banner is closed

i have a jquery mobile application, in iOS safari a smart app banner comes when the application is loaded in the browser that tells to install or open the application. ones the smart app banner is closed by the x icon in the prompt then its told that the safari sets a flag with the particular app id which is passed with the meta tag.
is there any way that we can get the set flag details ?
or
is there any way we can know if the x icon is clicked ?
the banner shown in the image is smart app banner and ones we click the x icon in that banner then the banner never prompts for that particular app. when i searched about this it was told that a flag will be set by safari for that particular app with the app id we specify in the meta tag for the smart app banner. i need to know, is there any way to get the flag details, or to reset the flag.
the only solution i found to reset the flag is to reset the device
You can subscribe to window resize event. It will be emitted after a banner has been closed.
window.addEventListener('resize', () => ...);

Choosing the iAd banner

I am new to iAd. I used iAd for the first time in one of my apps .. and I didn't like the type of ads that was shown in my app. Is there anyway to choose which ads or banners can appear in my app?
or at least which category of ads?
If you're referring to add content (e.g. kid apps or car ads), you don't have a choice in which type of ads are displayed to the user. There does seem to be some tailoring of ads from Apple based on user data from app download analytics but that's entirely opaque to developers adopting iAd.
The APIs which are provided with iAd lets you show either banners either interstitial ads (which is an ad displayed on all the screen).

Locking iPad to Safari and one webpage

Can you somehow lock an iPad to Safari and only one webpage? I've found people locking iPad to certain apps but can't find this anywhere.
One app example:
Lock-down iPhone/iPod/iPad so it can only run one app
From the accepted answer to the question you link to:
It is possible to put an iPad or iPhone into 'Store Demo' mode so that the home button and swipe to home gesture is disabled. If you have seen the iPads in the Apple Store running the smart sign apps then you will know what I mean.
So you could, for example, lock the device to Safari. But then it would be possible to navigate to any webpage.
What you need to do is to write a simple app that has a UIWebView that loads your site, and then put the device in 'Store Demo' mode afterwards. Also, depending on whether your site contains links to the outside world, you may have to implement webView:shouldStartLoadWithRequest:navigationType: from the UIWebViewDelegate protocol so that it refuses to leave your site.

Resources