How to pass "Windows App Certification Kit – Test" of a UWP app which has "Restricted namespace"?

According to Show Confirm Dialog When User Close UWP App, i used namespace "rescap" in my UWP app.

<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  IgnorableNamespaces="uap mp rescap">
  ......
  <Capabilities>
    <Capability Name="internetClientServer"/>
    <Capability Name="privateNetworkClientServer"/>
    <Capability Name="internetClient"/>
    <rescap:Capability Name="confirmAppClose" />
  </Capabilities>
</Package>

But now i can not pass the "Windows App Certification Kit – Test"
enter image description here

How can i pass this test without removing this "Restricted namespace"?

Source: Windows Questions

LEAVE A COMMENT