In a Windows Phone 8.1 app I've a WebView
that renders some local html pages. By default the WebView
acts like an Internet Explorer in mobile mode. But Internet Explorer mobile mode has some restriction: can't render MathJax
. So I need to change the user agent.
So far I've found two methods to change the user agent:
- Here is explained how to change user agent, but this creates Certification error while publishing the app in windows store, windows store does not allow
urlmon.dll
- Here is explained how to change the user agent with HttpWebRequest. But I can't implement this for loading local html files.
My question is how can I implement the second method to load local html files?