Inspect WKWebview for app running on Mac Designed for iPad - ios

I have been working on an app which run on iOS Device and Mac both. I'm using Mac Designed for iPad option. I want to inspect WKWebview from my app in safari. I am able to inspect WKWebview in iOS devices but not able to inspect the same using Mac device as my app is not getting listed under develop option in safari for Mac Designed For iPAD option.

Related

Debug WKWebView on iOS app running on Mac (Designed for iPad)

It looks like when an iOS app runs on Mac (Designed for iPad) it doesn't use Safari as the renderer but uses Apple Mail instead 🤯
Not only this browser seems to be more limited than Safari, but it also can't be inspected using Safari>Develop.
Any idea how this webview can be debugged? Thanks!

Universal deep link not working on Mac (Designed for iPad)

I am using Firebase to setup email link authentication and followed the instructions listed here: https://firebase.google.com/docs/auth/ios/email-link-auth?hl=en&authuser=0
The project is an iPhone, iPad, and Mac (Designed for iPad) app built using SwiftUI. The email link authentication is working perfectly fine on iPhone and iPad. When I tap on the link in the email, the app launches, processes the link, and I am logged in.
When I am running the iPad app on an Apple Silicon Mac using a "Mac (Designed for iPad) build. The dynamic links do not seem to make it to the running Mac app, specifically, onOpenURL is never triggered: https://developer.apple.com/documentation/swiftui/view/onopenurl(perform:)
I have tried opening the link using both chrome and Safari on the Mac. Neither of them make it to the running Mac (Designed for iPad) application.

Restrict download to Macbook / MacOS of published mobile iOS App

We recently had released the app on App Store for iPhone and iPad but once the app got published we do see the Mac OS support and we are even able to download the app in our MacbooxandiMac`.
Is there a way to restrict this or apple does do this automatically as we haven't configured anything for Mac OS?
The whole point of M1 Macs is that they run iPad apps natively. OK, maybe not the whole point, but it's a major part of the meaning of an M1 Mac: its processor is an iPad processor so its apps can be iPad apps.
If you don't want your iPad app to be downloaded to an M1 Mac, you need to opt out. You can do that on the Pricing and Availability page of your app's entry on App Store Connect:
Note the checkbox. It is checked by default. Unchecking it is up to you. You didn't uncheck it, so your app was downloaded to some M1 Macs.

Testing webauthn in the ios simulator

Does anyone know if testing webauthn in the iOS simulator (xcode 12) with ios 14.4 is possible? I tried it with https://webauthn.io and using an iPhone 8 with fingerprint enabled and iPhone 11 with faceid enabled but in both cases it does not seem work.
How to launch iOS simulator with Safari developer tools
1.Install XCode. If you are developing on Mac, chances are you already installed XCode. You can either use the Apple App Store (easiest way) to install XCode or get the DMG/XIP file to install it if you do not use the App Store.
2.Start iPhone/iOS Simulator.app to launch the Simulator. If you have not created a simulator yet, you need to do this in XCode. You can have multiple simulators as you might want to test on different devices. I recommend creating a shortcut so you do not need to open XCode every time you want to launch a simulator.
3.Open the Safari browser in the Simulator. As mentioned above, other browsers like Chrome are not supported.
4.Open the Safari browser on your Mac device to connect it with the Safari browser in the simulator. Now you should be able to use the Safari developer tools like in any other web page: see the DOM, set breakpoints for debugging, perform network analysis and much more.

Inspect WebView on iOS native app

I am able to remote inspect websites on my iPhone's safari by connecting the iPhone to my mac with a lightning cable.
But this does not work with webviews on a native iOS app. In safari (mac) Develop > My IPhone shows "No inspectable applications".
How do I remote inspect webview on native apps?

Resources