You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

MarketAlly.ViewEngine

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MarketAlly.ViewEngine

Enhanced .NET MAUI WebView control with advanced browser capabilities, real-time content monitoring, and PDF processing. Features include custom user-agent configuration, DOM change detection, PDF handling, cookie management, and seamless cross-platform support for Android, iOS, and Windows. Key Features: - Custom User-Agent and browser detection bypass - Real-time content monitoring and DOM change detection - Automatic PDF download handling and text extraction - Full cookie and storage support - WebRTC and WebGL compatibility - Cross-platform implementation (Android, iOS, Windows) - Event-based content updates - JavaScript injection support Perfect for applications requiring advanced web content interaction, monitoring, and processing.

1.0.4
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

MarketAlly.Maui.ViewEngine

📢 Overview

MarketAlly.ViewEngine is a powerful .NET MAUI WebView control that mimics a real browser, enabling full JavaScript support, cookies, WebRTC, and custom User-Agent overrides. It works seamlessly across Android, iOS, and Windows.

🚀 Features

✅ Supports custom User-Agent
✅ Enables cookies, storage, WebRTC, and WebGL
Bypasses WebView detection techniques
Fully compatible with .NET MAUI
✅ Works on Android, iOS, and Windows

📌 Installation

To install the package, run the following command in your .NET MAUI app:

dotnet add package MarketAlly.Maui.ViewEngine

Or, in Visual Studio:

  • Open Package Manager Console.
  • Run:
    Install-Package MarketAlly.ViewEngine
    

📌 Setup in MauiProgram.cs

After installing, you must register the custom WebView handler inside your .NET MAUI app.

Modify MauiProgram.cs to add the handler:

using Microsoft.Maui;
using Microsoft.Maui.Hosting;
using MarketAlly.Maui.ViewEngine.Controls;
using MarketAlly.Maui.ViewEngine.Handlers;

var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>();

// Register the custom WebView handler
builder.ConfigureMauiHandlers(handlers =>
{
    handlers.AddHandler(typeof(WebView), typeof(WebViewHandler));
});

return builder.Build();

This ensures your app correctly loads the WebView with platform-specific optimizations.

📌 How to Use WebView

Once registered, you can use WebView in XAML or C#.

🔹 Using in XAML

<ContentPage xmlns:controls="clr-namespace:MarketAlly.ViewEngine.Controls;assembly=MarketAlly.ViewEngine">
    <controls:WebView 
        Source="https://example.com"
        UserAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"/>
</ContentPage>

🔹 Using in C#

using MarketAlly.Maui.ViewEngine.Controls;

var webView = new WebView
{
    Source = "https://example.com",
    UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
};

Content = new StackLayout
{
    Children = { webView }
};

📌 FAQ

How does this WebView differ from the default .NET MAUI WebView?

  • WebView allows custom User-Agent overrides, enables cookies, storage, WebRTC, and improves browser detection evasion.
  • The default .NET MAUI WebView lacks these advanced features.

Does this work with authentication-based websites?

Yes! Cookies and session data persist between navigations, making it suitable for login-based websites.

Does this work on iOS, Android, and Windows?

Yes! It uses:

  • Android: Native WebView (with Chrome-like behavior).
  • iOS: WKWebView with full JavaScript and cookie support.
  • Windows: WebView2 (Chromium-based).

Can I use this with OAuth authentication?

Yes! The WebView can be used for OAuth authentication flows, but we recommend opening authentication pages in the system browser (e.g., SFSafariViewController for iOS or Custom Tabs for Android).

📌 Contributing

Want to improve this library? Feel free to submit issues and pull requests on https://github.com/MarketAlly/MarketAlly.ViewEngine

📌 License

This project is licensed under the MIT License.

📌 Support

💬 Need help?
Open an issue on GitHub or contact us via email at support@marketally.com. 🚀

Keywords

webview

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.