Scripts inside local html is not working with webview Eval in UWP Xamarin forms

Keerthana Sathiyanathan 0 Reputation points
2024-06-13T05:22:24.0766667+00:00

Tried to update the html elements using script with webview Eval, its working fine in android and iOS but it is not working with UWP Xamarin forms.

1.webview.Eval to update the script :User's image

  1. Script inside local html :

User's image

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
968 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,631 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,266 Reputation points
    2024-06-28T17:12:46.0533333+00:00

    Xamarin forms for windows uses the edge based webview rather than the webkit based webview used on other platforms. Be sure your html and js are compatible with edge.

    note: if you google you can find webview2 wrappers for Xamarin.

    0 comments No comments