I am trying out SecureInput extension sample that demonstrates NativeMessaging capabilities in MS Edge browser extensions and I running into problems deploying the extension after building using VS community edition 2017. I don’t have Universal Windows Platform Apps development experience, so I apologize if there is a pretty obvious answer I am not aware of. But following readme.md in the sample doesn’t work, so posting this question here...
https://github.com/MicrosoftEdge/MicrosoftEdge-Extensions-Demos/tree/master/SecureInput
Steps followed…
- Turned on developer mode in “Use Developer Features”
- Turned on Enable extension developer features in Edge browser’s about:flags.
- Downloaded the sample as a zip file to the local machine.
- Copied SecureInput.html to my local webserver
- Loaded SecureInput.sln in VS community edition 2017 Out of two options.. InProc or OutOfProc, I wanted to try InProc. So needed to select Project in NativeMessagingHostInProcess in Build Configuration manager. Other settings used... Debug - configuration; Any CPU – Active solution platform; NativeMessagingHostInProcess – x64 project platform as I was using 64 bit Windows and edge running as a 64 bit process as well; Left rest as default.
- With Debug Configuration and Any CPU Solution platform built the entire solution.
Deployment Summary
- Built Entire SecureInput solution.
- Installed AppX package by running Add-AppxPackage -register [PathtoSecureInputSolutionFolder] NativeMessagingHostInProcess\bin\x64\Debug\AppxManifest.xml
- No errors during building or while running Add-AppXPackage from elevated Power shell prompt.
Expected: At this point EdgeBrowser->MoreOptions->Extensions should list extension installed by AppX package (Deployment Summary/Step 2). =>> Doesn’t happen.
Few other details
- I am using 64 bit Win 10 creators build (1703 – OS build 16063.128)
- I am suspecting Add-AppxPackage failed to add the extension silently. Verbose flag doesn’t give me any clues either.
- Get-AppXPackage shows newly added AppX package.
Name : ae24a957-5239-43b2-a36c-b96805a58ade Publisher : CN=msft Architecture : X64 ResourceId : Version : 1.0.0.0 PackageFullName : ae24a957-5239-43b2-a36c-b96805a58ade_1.0.0.0_x64__2yx4q2bk84nj4 InstallLocation : [PathtoSecureInputSolutionFolder] \NativeMessagingHostInProcess\bin\x64\Debug IsFramework : False PackageFamilyName : ae24a957-5239-43b2-a36c-b96805a58ade_2yx4q2bk84nj4 PublisherId : 2yx4q2bk84nj4 IsResourcePackage : False IsBundle : False IsDevelopmentMode : True IsPartiallyStaged : False
I would like to know if anyone got this sample working. If Microsoft Edge folks are monitoring stackoverflow, I really appreciate if someone can jump in to help your early adopters like me. :-)