In my already published app, I tried adding ADs using “Microsoft Advertising SDK for XAML” (tried adding reference via both NuGet and msi). On my dev machine both debug and release builds work fine, even .appxbundle created as part of packaging works as expected, but the app always crashes at launch for the reviewer when submitted for review/certification (.appxupload file).
Note: The app is a Desktop Bridge app. There is a UWP app which communicates with a win32 exe. The call to launch Feedback hub or Ads are in the UWP app.
Following are the max and min supported versions of my project-
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.17134.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
I also tried adding following entries in the rd.xml file hoping to fix any reflection related issue, but no luck
<Type Name="Microsoft.Advertising" Dynamic="Required All"/>
<Type Name="Microsoft.Advertising.WinRT.UI" Dynamic="Required All"/>
<Namespace Name="Microsoft.Advertising" Serialize="All"/>
<Namespace Name="Microsoft.Advertising.WinRT.UI" Serialize="All"/>
It has been over a week now and I am not able to fix the issue. Any help would be really appreciated.
Edit: On removing reference to Ad SDK the app passed certification and didn't crash for the reviewer. The app packages which crashed during review had reference to Microsoft.Advertising.Xaml
10.1811.1.0
.