-
Notifications
You must be signed in to change notification settings - Fork 165
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
Remove deprecated UIWebView #308
Comments
Hi @goelay, thanks for the bug report. Feel free to fix this. I am accepting PRs in this regard. |
An issue here is that Someone put together the methods of getting the End result is that The good news is that the DispatchQueue.main.async {
self.userAgent = userAgent ?? URLSessionDispatcher.defaultUserAgent()
} But I imagine running on the JS thread would be a lot slowing in CPU-time, so there's probably greater risk of a race condition here if we use |
@notjosh Thanks for your ideas. I took the liberty and create a PR based on your ideas. I do think it's not a huge issue if calculating the user agent takes a little longer. It's only needed at dispatch time. Events aren't set to the server right away but just once a few got collected. Event if there are quite some events collected right away, the user agent should already be generated at that time. Worst case is that some information that would usually be gathered from the user agent, isn't available on the backend. If you don't mind, please have a look at my PR. |
Hey, awesome, this looks like it'll do the job just nicely. Great work :) And, agree on the worst case being unlikely and not a huge issue. |
Awesome. Thanks for the feedback everyone.This got merged and will be part of the next release. |
This just got released in version 7.0.0 |
Thanks for the great work! Could this possibly be backported to a 6.0.2 version that doesn't require iOS 10? |
Yeah, the problem is, that we currently can't run tests on Simulators smaller than iOS 10. Since we require Swift 5, there is (afaik) no way to execute a test on a iOS 9 Simulator while using Xcode 10.3, right? |
Yeah. That might be a problem... I will start a discussion about dropping iOS 9 with the team. This would also drop quite some legacy code in my case... |
The only thing I've got in mind on top of that is to fork, change it from iOS 10 to 9 in your fork and use it this way. It should work fine on iOS 9 as well. I didn't use any API that's not supported on iOS 9. It's just a bit of a workaround for now. |
…-org#253, which was removed in matomo-org#308
…-org#253, which was removed in matomo-org#308
…-org#253, which was removed in matomo-org#308
…ture matomo-org#253, which was removed in matomo-org#308
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.
Best regards,
The App Store Team
Matamo is using UIWebView to get defaultuserAgent(). Please fix this.
The text was updated successfully, but these errors were encountered: