question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows app certification fails

See original GitHub issue

Bug description: An app containing react-native-webview fails the Microsoft Store certification with an Unsupported APIs error Here is the detail of the error :

API _CxxThrowException in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __C_specific_handler in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __std_exception_copy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __std_exception_destroy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __std_terminate in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __std_type_info_destroy_list in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API _purecall in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API memcpy in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API memmove in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API memset in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API wcsrchr in vcruntime140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?_Xlength_error@std@@YAXPEBD@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?_Xout_of_range@std@@YAXPEBD@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrAssign@@YAXPEAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrCopy@@YAXPEAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrCopyException@@YAXPEAXPEBX1@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrCreate@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrCurrentException@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrDestroy@@YAXPEAX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API ?__ExceptionPtrRethrow@@YAXPEBX@Z in msvcp140.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.
API __CxxFrameHandler4 in vcruntime140_1.dll is not supported for this application type. Microsoft.Web.WebView2.Core.dll calls this API.

Note that this only happens on the store. The app passes the local WACK (windows app certification kit).

Environment:

  • OS: Windows 11
  • react-native version: 0.68.2
  • react-native-windows version: 0.68.5
  • react-native-webview version: 11.18.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
giregkcommented, Jun 22, 2022

I’ve pinned the problem. It happens with version 2.8.0-prerelease.210927001 for WinUI. (NB: it also happens with version 2.8.0-prerelease.22something)

After I reverted to specifying <WinUI2xVersion>2.7.1</WinUI2xVersion> in my project’s ExperimentalFeatures.props, I was able to pass the certification (without react-native-webview).

Since react-native-webview cannot be built with this version of WinUI2xVersion, I managed to pass the certification with react-native-webview by

  • specifying <WinUI2xVersion>2.7.1</WinUI2xVersion> in my project’s ExperimentalFeatures.props as well as in react-native-webview’s ExperimentalFeatures.props.
  • specifying <package id="Microsoft.UI.Xaml" version="2.7.1" targetFramework="native" /> in react-native-webview’s packages.config
  • manually deleting all webview2 related code in react-native-webview

So essentially, this means that Microsoft.UI.Xaml 2.8.0 is not yet ready for app store certification.

0reactions
chiaramooneycommented, Jun 23, 2022

Thanks @giregk for the info! I’m going to close out this issue since it isn’t specific to react-native-webview, but would be good to track this issue in the core react-native-windows repo to make sure we validate the scenario when we move to WinUI 2.8, if you have a change to file issue there.

Note currently the setup in the webview module is that once you update to v0.68 for RNW you will need to use WinUI2.8 pre-rerelease or greater. We will be making an update soon so that developers can option into using WinUI2.8prerelease for v0.68+.

Another note https://github.com/microsoft/react-native-gallery is an RNW app that is currently live in the store using WinUI 2.8.0-prerelease.210927001 and RNW v0.68.0. Curious why yours was unable to pass store validation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoid common certification failures - Windows apps
Review this list to help avoid issues that frequently prevent apps from getting certified, or that might be identified during a spot check ......
Read more >
Windows Store app certification failed without any report
An update to my app failed its certification shortly after the preprocessing stage. The Partner Center dashboard only shows A previous ...
Read more >
Windows Certification Kit tests failed unreasonably (may be ...
Windows Certification Kit tests failed unreasonably (may be related to app verifier) on my local machine. I have been trying to figure out ......
Read more >
Windows App Certification Kit fails online test, but succeeds ...
Windows App Certification Kit fails online test, but succeeds locally - Microsoft Q&A.
Read more >
Windows App Certification Kit tests - UWP - Microsoft Learn
Windows App Certification Kit error message: NXCheck Test failed. This test verifies that an app doesn't run code that is stored in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found