Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): enable webview inspection #13879

Merged
merged 7 commits into from
Jul 10, 2023
Merged

fix(ios): enable webview inspection #13879

merged 7 commits into from
Jul 10, 2023

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Jul 4, 2023

Follow up to this PR: #13812

This one only enabled inspection for the JSContext and not the the webview itself.
https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/
has two parts for that.

Slack thread: https://tidev.slack.com/archives/C03CVQX2A/p1688465009923559

@m1ga m1ga marked this pull request as draft July 10, 2023 08:32
@m1ga
Copy link
Contributor Author

m1ga commented Jul 10, 2023

tested with 16.4 simulator works fine but it doesn't use the version code check so it will still crash on 15.5 🤔

iphone/Classes/TiUIWebView.m Outdated Show resolved Hide resolved
@m1ga
Copy link
Contributor Author

m1ga commented Jul 10, 2023

Just saw that the other PR is using if (@available(iOS 16.4, *)) { now (source).

That works now. 15.5 and 16.4 simulators are now working

@hansemannn
Copy link
Collaborator

If possible, please still add the __IPHONE_16_4 statement to retain Xcode < 13.4 compatibility

@m1ga m1ga marked this pull request as ready for review July 10, 2023 08:50
@m1ga
Copy link
Contributor Author

m1ga commented Jul 10, 2023

ah I see! I've added the #if.. part again 👍

@hansemannn hansemannn merged commit 8061acd into master Jul 10, 2023
5 checks passed
@hansemannn hansemannn deleted the 230704_ios_webview branch July 10, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants