This PR changes the way the custom UserAgent is registered on the ForemWebView instance.
Using self.customUserAgent to assign a custom UserAgent was causing issues. This change now relies on applicationNameForUserAgent instead and it makes sure this configuration is set before the WKWebView is instantiated (otherwise we ran into other problems).
This PR changes the way the custom UserAgent is registered on the
ForemWebView
instance.Using
self.customUserAgent
to assign a custom UserAgent was causing issues. This change now relies onapplicationNameForUserAgent
instead and it makes sure this configuration is set before theWKWebView
is instantiated (otherwise we ran into other problems).Closes https://github.com/forem/forem-ios/issues/60