Windows.Universal Javascript PWA app uses Edge legacy instead of Edge Chromium - progressive-web-apps

Wondering what causes my PWA app to use edge 18 engine as runtime when the Edge Chromium is present on my windows machine.
Because of this I have to downgrade my Javascript target to es2016 (es6) as I compile my typescript.
I am using Aplication.Manifest and generating a package msix.
Could my Applicication.Manifest playing any part ? Or is there any way it can be changed so that the runtime uses the current version of Edge Chromium engine if at all it is possible.
Wondering you build your javascript based native apps and target a better runtime in 2022 ?
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.18363.1139"/>
</Dependencies>
Update:
To clarify I am using appx package manifest and creating an app with a link to a PWA site.

You can take a look at this sample code from Microsoft official UWP sample using WebView2. See if this can help you. I would suggest following the official tutorial to make sure everything works fine.

Related

Generate HarmonyOS (Huawei) build from Flutter project

I am working on one Flutter project. In which, We want to generate builds of Android, iOS, and HarmonyOS (Huawei). But I am not sure does Flutter supports this OS or not. I went through some of the stuff on the internet but was unable to figure out how to generate and what kind of commands were needed. Here, Anyone has previously generated HarmonyOS compatible build from the Flutter project. Please share your thoughts.
For now it is not possible directly from Flutter. Because of the change in architecture brought by Huawei with HarmonyOS it is not anymore an "Android device" and it doesn't run "Android applications".
Now what you can call "native HarmonyOS applications" are *.app files (not *.apk or *.aab)
Most recent answer on Quora to:
Will Harmony OS run Android apps?
Gives the following response:
Answered Jun 4, 2021 by Mahdi Parastech, Software Engineer
Nope, because:
The structure of the APIs are different.
Hongmeng (HarmonyOS) apps are in *.app, Android apps are *.apk
The structure of pages (activities) are different, Hongmeng uses some additional json files and puts pages inside *.har files.
Hongmeng uses Javascript too, and that's the only option in Wearable Hongmeng devices, but Android apps are just written in Java.
source
Apparently you should be able to migrate your native android application to HarmonyOS by using their IDE but the thing is that Flutter was not build for this architecture.
Except if the Flutter team decides for some reason to support HarmonyOS I don't think it will be possible to develop HarmonyOS applications by using Flutter.

How use native code in desktop flutter app?

I wanted to ask you about the desktop part of the technology.
If the documentation is about how ordinary developers can inject native code into a desktop application (WPF, Mac, Linux) like buinding or as a custom plugin or something similar
Best regards, Vadim
You have all the same options for platform code on desktop that you do on mobile:
Adding it directly to the native runner app that's created by flutter create
Writing a plugin
FFI

PhoneGap BUILD and phonegap-facebook-plugin sample

I want to use the phonegap-facebook-plugin in a PhoneGap BUILD application.
The documentation here only explains how to add the plugin into the config file but does not explain how to actually use it.
More specifically,
does anyone have experience with this plugin and PhoneGap Build or
for that matter any other plugin? Sample code?
what version of the "facebookConnectPlugin.js" should I use? (there
are several of those in the project)
during the development phase I
am testing in the browser first and then on the phone. How do I make
it work in both environments?
Thanks.
Actually, if you go here, the author has the example of the usage there.
The version you're looking at was deprecated. Use <plugin name="cordova-plugin-facebook4" source="npm" spec="1.4.0"> instead.
You have to add your localhost to Facebook app settings.

Using phonegap to develop iphone app on visual studio

I am completely new to mobile app development and basically c#,.net developer.Recently i got a requirement to develop a iPhone application.Some experts suggested me to use icenium extension for visual studio and Phonegap. I want to know how to use/install phonegap for this and how does phonegap helps me to develop this application?what are the basic difference between icenium and phonegap as i know both helps to develop cross platform apps.
Telerik AppBuilder (formerly known as Icenium) is a set of IDEs and cloud-based build tools that allow you to use PhoneGap/Cordova to build cross-platform apps. You should read up on it and use their free trial here: http://www.telerik.com/appbuilder
Check out the Multi-Device Hybrid Apps (Preview) from Microsoft.
Don't you just love their naming conventions...
I haven't had a chance to try it myself as it requires VS2013 and Windows 8.1, but it looks promising.
Use Nomad. (Visual studio extension which integrates Adobe Phonegap Build)
Update:
From http://vsnomad.com/
Retiring Nomad
When we made Nomad free, we hoped the support load would be
manageable. However, we’ve found our users still expect a lot of
support for free tools. We don’t want to give our users false
expectations, so we think it’s better that they find another solution
with full support. For this reason, we will retire Nomad on September
1st this year.
Alternatives to Nomad
Nomad uses the open-source Cordova framework. This means you can move
Nomad projects to other vendors that use Cordova, including:
PhoneGap Build (Adobe)
Instead of using PhoneGap Build via Nomad, you can interact with it directly using the PhoneGap Build command line.
Multi-Device Hybrid Apps (Microsoft)
A Visual Studio extension that adds PhoneGap support.
AppBuilder (Telerik)
A Visual Studio extension similar to Nomad.

which version of mobile firefox in android, fully supports extension?

I made an addon to Dektop Firefox using addon-sdk. now i want to launch it into firefox mobile(fennec) in android. I am using android 4.0.3 emulator. I have installed mobile firefox browsers(almost all versions) in it. im trying to install my addon to mobile firefox using addon-sdk. in this step i am getting different types of errors.
1.some addons installed with disable mode, but not working enable/disable option.
2.for some addons, i am getting "addon installed,restart required" option, but after restart, addon not visible in addon manager
please, provide atlesat one working way, to develop and install firefox addons(any simple) in fennec(any version) in andoid (any emulator/any mobile).
Thanks,
You are asking the wrong question. Any version of Firefox Mobile supports extensions, no problems here. However, its user interface is very different from the desktop Firefox which means that extensions built for the desktop Firefox usually won't work without adjustments. So the correct question would be:
Which version of the Add-on SDK supports Firefox Mobile?
You need Add-on SDK 1.5 or higher. When running cfx you will have to use --force-mobile command line flag to make sure that your extension is marked as compatible with Firefox Mobile. There will still be limitations however, most SDK modules currently don't support Firefox Mobile. Add-on SDK 1.8 lists the following modules as supporting Firefox Mobile:
page-mod
page-worker
request
self
simple-storage
timers
Wladimir is correct, and I would only add that we are working on expanding module support on native Fennec. If you want to play with some additional Fennec features in an SDK-based add-on right now, you can get access to the NativeWindow and BrowserApp objects Fennec implements by using this code in a module:
let utils = require('api-utils/window-utils');
exports = {
BrowserApp: utils.activeBrowserWindow.BrowserApp,
NativeWindow: utils.activeBrowserWindow.NativeWindow
};
The documentation for these objects is on MDN:
https://developer.mozilla.org/en/Extensions/Mobile/API/BrowserApp
https://developer.mozilla.org/en/DOM/window.NativeWindow