Testing Apple Smart App Banner on desktop browser - ios

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.

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.

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)

You can just tap the toggle device toolbar inside chrome inspector and the smart app banners are recognized since this toggle changes to a mobile user agent.
See sample result :

Related

How can i trigger my iphone application to launch from my mac app

I want to launch my app on the device (if App available) using the USB\Wifi\Bluetooth connection from my mac app.
How can I achieve this functionality
That is NOT possible. You can't do it using any public API. Though i am not aware of any private API that facilitate this types of functionality.
This is iPad control Mac's touch bar demo:
TouchBarDemoApp Allows you to use your macOS Touch Bar from an iPad (through USB connection) or on-screen by pressing the Fn-key.
Mac control iPhone:
iTunes Mac app can get the iPhone's screenshot and edit iPhone's apps.
Xcode can launch iPhone's apps when you debug ShareExtension.
So I think there are some methods to achieve your function. But I don't how to achieve. Maybe its private.
As already posted, you cannot directly launch an app.
But you can make your App show up on the lock screen as well as the task switcher so it can be opened with one click. This feature is called Handoff.
Here is the usage description for the end user and this is the programming guide on how to implement it.

Testing on mobile sized screen in Visual Studio

I've built an mvc app that i've loaded up to azure and on a desktop it looks fine. But the layout is a bit all over the place on a mobile device. Rather than publishing my changes to azure every time I make a design change is there a way I can see how it would look in a browser eg. chrome on a mobile device? One way i'm doing it is just resizing my browser on the laptop to the size of a mobile device and that kind of works but just wondering if there was a better way.
Thanks,
Jerome
You can use F12 option which have toggle device toolbar option in chrome. That would help you see the responsive respective design of your app in all the popular mobile devices chrome gives as an options to test on. plus you can use custom sizing to adjust width and height of the screen to manually check the responsivity.

Universal Links not working on iOS10

Just updated my iPhone to iOS10 and the Universal links stopped working. If I run my app in an iPhone with iOS9, or lower, the Universal Links work fine, but the are just not working at all in iOS10.
Any clues?
It sounds like you inadvertently deactivated Universal Links. This usually happens if you tap the bypass link in the top right corner of the screen after opening a Universal Link.
This is a per-app setting that is saved on each unique device. The setting is preserved even if you delete the app and reinstall it, so the only way to reverse this is by intentionally re-enabling Universal Link behavior for that app on your device. There are a couple of ways to do this:
Paste the link into Notes or iMessage (or some other app that supports Universal Links) and long-press on it. You'll see an 'Open in [App]' option. Select it, and after that all Universal Links for that app will work again.
On the the webpage that opens in Safari — assuming it doesn't immediately redirect somewhere else — you can scroll up on the initial view to get a banner. Clicking this will also re-enable Universal Links for the associated app.
Ensure that you have the app installed on your device first. A fix for iOS 11 is to text or send the universal URL to yourself or a friend via iMessage. Then tap on the link to open it. It should automatically launch the app. This should fix the issue.
A couple of notes:
Some apps like Slack (at the moment) does not send me to the app but instead sends me to Safari. So don't rely on Slack to test your universal links.
Another thing that wasn't working for me was seeing the app banner from safari, but after sending the URL via iMessage and tapping on it, I am able to see the app banner from safari again.

How can I see the source of a webpage as it would be displayed on an iPhone?

I don't have an iphone, but I want to see what the HTML looks like to my users using an iphone.
Is there a way to emulate an iphone, so that flash does not appear ? For example if I visit YouTube, I don't want to see the Flash player in an emulator.
Thanks
Download Xcode for free if you have a mac and you can use the iphone simulator bundled with it. See this link on How to run iPhone emulator without opening Xcode
try safari browser. select Develop, User Agent, iPhone (or iPad or iPod Touch) from that menu.
if the Developp menu is not found then, Show Develop menu in menu bar in the Advanced Preferences

UIWebView vs Home Screen vs Mobile Safari Apps

I noticed the Home Full Screen Apps behaves worser than Mobile Safari. I'm wondering also if there are any differences in UIWebView from Mobile Safari also. I'm currently testing on iOS6. If anyone has anything else they want to mention about the pros and cons of each I would appreciate it.

Resources