Javascript and Header Injection for Xamarin WebView or Tizen Native WebView

Javascript and Header Injection for Xamarin WebView or Tizen Native WebView

BY 27 Nov 2020 Tizen .NET

Hi everyone,

 

Currently I have a Xamarin Grid with Xamarin WebViews embedded. As I need to inject Javascript code and HTTP headers, I looked up the possibilities and only found PCL solutions for Android and iOS. Is there a way to solve this with a Xamarin WebView?

If not, I found the Tizen .NET WebView, in which both Javascript and HTTP headers can be injected. I am not sure if this WebView can be integrated as a child into a Xamarin Grid however, as it needs an ElmSharp.Window passed upon creation of the Tizen WebView object.

Has anybody found a solution to this or are there any suggestions?

 

Xamarin Grid: docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/grid
Xamarin WebView: docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/webview?tabs=windows
Tizen .NET WebView: docs.tizen.org/application/dotnet/guides/connectivity/webview

 

Best,
Ewald

Written by