Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Apple Smart App Banner on desktop browser

Is there any way of testing Apple Smart App Banners in a desktop browser by doing something along the line of spoofing the user agent, or is this functionality so specific to Mobile Safari that I can only test it on an iDevice?

I know that merely spoofing the user agent in a desktop browser doesn't do anything in regards to showing the Smart App Banner, but maybe I can do something else in my desktop Safari browser to test the banner?

I am not an iOS developer but I have access to the iOS emulator on my colleague's Mac if that helps.

like image 607
Hildesheim Avatar asked Oct 04 '13 08:10

Hildesheim


People also ask

What is a smart app banner?

Smart Banners are ad units that render screen-width banner ads on any screen size across different devices in either orientation. Smart Banners detect the width of the device in its current orientation and create the ad view that size.


2 Answers

Unfortunately, the Smart App Banner is only displayed on iOS Safari on a real device. The iOS Simulator and desktop Safari cannot display smart app banners.

This is a bummer, especially because resetting smart app banners after they have been dismissed is a huge pain.

like image 106
peteorpeter Avatar answered Oct 27 '22 17:10

peteorpeter


In chrome dev tools, click the sprocket that lead you to the more advnaced settings, there check the 'override' check-box, and select a mobile user agent(IOS, Android).

Keep in mind that the screen sizes that chrome provide are not always accurate and might need some adjustment.

For more accurate screen sizes you might want to use Mozilla & Firebug(basically has the same functionality)

like image 23
Oleg Belousov Avatar answered Oct 27 '22 18:10

Oleg Belousov