Skip to content

App hanging when accessing userAgent value #229

@everuribe

Description

@everuribe

Describe the bug
Since we started tracking app not responding instances, we have seen that many of our users experience app hanging of more than 10 seconds when AppleUtils.userAgent is accessed, specifically

WKWebView().value(forKey: "userAgent") as? String

This happens when analytics is configured (app launch).

To Reproduce
Not consistently reproducible.

Expected behavior
Perhaps this value could be set asynchronously, not in main thread, once it is available (unless this value must be accessed on main...). Or the option to not include this property could be provided.

Screenshots
image

Platform (please complete the following information):

  • Library Version in use: 1.4.0
  • Platform being tested: macOS

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions