Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
iOS 16.4+: webview inspect stop working
After upgrading my iPhone, I can no longer inspect Stagewebview from Mac/Safari. I saw that a new flag has been added on the webview for iOS 16.4+: https://developer.apple.com/documentation/webkit/wkwebview/4111163-isinspectable
Do you plan to make something about it?
Thx.
@ajwfrost Nothing can be done about this? It's a big hole in my dev/debug flow. Thx for your reply.
@marcanw @ajwfrost this is because the webview has a new isinspectable that needs to be enabled for debugging Reference posts: https://developer.apple.com/forums/thread/727049 (for cordoba) https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/ (Apple) https://github.com/ionic-team/capacitor/issues/6441 (Thread in Capacitor's github)
Hi
We were wondering how to set this up so that we don't necessarily enable it for everyone all the time.. can I check that you would only need this to be set up whilst you're debugging the application?
- On desktop mac we can easily set this so that the
isInspectable
property is set to true if you're running from ADL. - On iPhone/iPad we can perhaps check the package type and enable this for any of the '-debug' package variants? so e.g.
-target ipa-debug
would allow you do to this but-target ipa-app-store
would disable it.
Let me know if that might work..
thanks Andrew
I don't use desktop mac, so I can't say. For iOS, debug package would be perfect for isInspectable =true.
thx @ajwfrost
Hi @ajwfrost Any news about this? I didn't see it in the last sdk. Thx
Hi - we are working on this, but the changes needed (I think on the macos side) were more extensive than we'd thought .. let me check whether we could push this out just for the iphone build first though, given your above comment!