Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

iOS 16.4+: webview inspect stop working

Open marcanw opened this issue 1 year ago • 6 comments

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.

marcanw avatar Oct 01 '23 08:10 marcanw

@ajwfrost Nothing can be done about this? It's a big hole in my dev/debug flow. Thx for your reply.

marcanw avatar Oct 16 '23 11:10 marcanw

@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)

xabip avatar Oct 22 '23 09:10 xabip

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

ajwfrost avatar Oct 25 '23 05:10 ajwfrost

I don't use desktop mac, so I can't say. For iOS, debug package would be perfect for isInspectable =true.

thx @ajwfrost

marcanw avatar Oct 25 '23 18:10 marcanw

Hi @ajwfrost Any news about this? I didn't see it in the last sdk. Thx

marcanw avatar Dec 12 '23 21:12 marcanw

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!

ajwfrost avatar Dec 13 '23 09:12 ajwfrost