Web View
Last updated
Last updated
⚙️ Powered by Rock RMS
Inherits from WebView
Embeds a web page into your mobile app page. This control wraps the standard WebView and should generally be used instead of the .NET MAUI one. It adds an initial Activity Indicator that will be visible until the web page actually loads. Otherwise, someone might see a blank area for a few seconds before anything appears.
WebView content is completely contained and cannot affect the app shell or native page. For example, an action within a WebView cannot initiate a native navigation command.
To ensure that the web page displays with the proper scale within the application, add the following meta tag to the <head> of the page.
Note that the WebView control must not be embedded within a ScrollView; otherwise, the content will be clipped. You do not need to define the HeightRequest
and WidthRequest
properties when using the Rock Mobile version.
If the embedded web page contains an iframe and only a blank page is shown, it may be a CORS issue. On iOS, these errors are "swallowed" meaning nothing will be shown.
Keep in mind the domain of your API URL that the shell connects to your server with.
Source
string
The initial URL to be used when the WebView first loads.