Google Chrome Extention in Blazor - c#

As Blazor can run on client side via WebAssembly, can we develop/design Google Chrome extensions using Blazor?

I have developed a package to be able to build a Blazor WebAssembly application into a chrome extension.
Checkout the repo on GitHub for a step by step instruction how to convert your project to a Blazor chrome extension project.

Check out this Github repo that demonstrates a Hello World Chrome Extension written in Blazor. It has no interaction with Chrome APIs but does show how to package up a Blazor app as an extension.
https://github.com/traxium/webassembly-chrome-extension
You should be able to use Javascript Interop to call browser APIs, but I don't know of any way to call them directly. An open source project that mapped the browser APIs to C# would be ideal here.

Yup! We can develop/design Google Chrome extensions using Blazor-webassembly-app.
I'm building a chrome extension using asp.net 5.0 in blazor-webassembly-app.
I have faced so many difficulty till now and right now I am continuously facing difficulty its because no one in the world tried it yet and I am researching on it while building my POC (proof of concept).

Related

Using Launcher.LaunchUriAsync for UWP app with IL2CPP scripting backend

I have a Hololens app built using Unity 2019.3. Within the app, I am trying to use a onClick event on a button to open Microsoft Dynamics Remote assist.
I have tried to follow this tutorial. https://learn.microsoft.com/en-us/archive/blogs/appconsult/call-remote-assist-from-your-hololens-app
This tutorial says to use .net as the scripting backend, however Unity 2019.3 only allows IL2CPP as the scripting backend.
Have tried the code from this thread as well but still not working.
Execute "LaunchUriAsync" from a click of a HoloLens UI Button
Getting the following errors:
I tried a new project in Unity 2018.4 with scripting backend set to .NET and getting similar errors there as well.
I can't find anything online on how to get Launcher.LaunchUriAsync to work.
This tutorial says to use .net as the scripting backend, however Unity 2019.3 only allows IL2CPP as the scripting backend.
That doc is a bit outdated. We recommend using the latest Unity LTS (Long Term Support) as the best version so that we can avoid some known issues, and the current recommendation is to use Unity 2019.4.20f1.
And we don't need to set .NET as Scripting Backend anymore since IL2CPP is the best and only choice for now.
Some key steps are:
Create a new project in the latest LTS version Unity
Ensure the target platform is Universal Windows Platform. See File->Build Settings
Build the Unity project (You choose a folder in which Unity generates a Visual Studio solution; Usually, we create a new subfolder of the Unity project named App).
Open the new generated Visual Studio solution file and set the right configuration, build and run.
If you still need help, please paste the C# script clicker.cs

How to integrate flash player into GeckoFX without xulrunner

I am using C# Forms application that integrates GeckoFX browser to access web page. The web page is designed to use Flash.
I was able to integrate Flash driver into older version of GeckoFX (33.0) that is using xulrunner. The flash driver (NPSWF32.dll) is simply put into xulrunner\plugins directory and everything works fine.
However, I am not able to get the project run with recent versions of GeckoFX (eg. 45.x) that is not based on xulrunner. Is there any idea where should I put NPSWF32.dll?

How to Build a javascript interpreter For a custom made Browser?

I am working on my college project to build a Web Browser. I am Halfway through My Project and i came to know that WebBrowsers need javascript interpreters to Display latest websites.I am using c# language in Visual studio 2012. It Still Displays Some of the Basic Webpages but Doesn't Displays latest updated webpages like Google maps. I tried to suppress the error but doesn't help in other high end web pages. So how can i build a javascript interpreter and install it in my web browser.
Code I used to suppress the error
c# getCurrentBrowser().ScriptErrorsSuppressed = true;
The reason is that, you code is using the IE browser of your windows. IE often have incompatibilities. Try doing some research and inject a proper browser like chromium or gecko.
Look at this package

Can we publish a chrome extension with only native messaging feature included?

I created an extension that can communicate with my native C # application using Google Chrome native messaging.
However, Google's Chrome Webstore policy states:
Do not post an app where the primary functionality is to install or launch another app, theme, or extension. For example, if your app’s primary function is to launch a desktop app that the user has already installed, that is not allowed. Another example is a Chrome App that just launches a website.
So, how can I use native messaging and publish my extension on the webstore?
Thanks
Finally my extension has been accepted on the webstore with the only use of native messaging so yes we can publish an extension with only this feature and this is not a cause of reject, my issue came from the fact that i forgot to validate my website for the extension .

Code made on VS2017 for mac don't work on VS2017 for Windows

I'm not a developer but I needed to code a simple web page for a POC.
For that I used VS2017 for mac to make a MVC project and all is fine when I run it on "my machine" (yeah I know it a common issue :P), I mean I can build the solution and open the web page, this page is used to create/register an user at AWS Cognito.
But when I run this same solution in a windows machine with Visual Studio 2017, the project builds without errors the web page opens but I can't make the API calls to aws cognito, this machine has open access to internet, so it's not a network problem.
I think it can be a software problem, I'm using C# and .NET 4.5 + the AWS SDKs referent to the project.
Anyone has an idea?
Thanks in advance

Categories