Windows app certification fails
See original GitHub issueBug 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:
- Created a year ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
So essentially, this means that Microsoft.UI.Xaml 2.8.0 is not yet ready for app store certification.
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.