Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 UWP targeting windows 10 mobile only

Is it possible to target a uwp app just for Windows 10 mobile? I mean can we configure in the manifest just to work with phone and not tablet or desktop? Also, the users should not be able to search for the app on the store from a tablet, desktop etc but only from a phone.

like image 860
golldy Avatar asked Dec 17 '15 06:12

golldy


1 Answers

There is an entry in Package.appxmanifest specifying, which device families your application targets. Unfortunately it doesn't seem to be exposed in the editor, therefore you'll need to edit the XML directly. This is the entry, you need to change:

<Dependencies>
  <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>

Replace Windows.Universal with Windows.Mobile. Check the reference documentation for more information.

Also, when you are preparing the submission for the store, you can select which device families you want your application to be available for:

Windows 10 device family selection in store

like image 153
Damir Arh Avatar answered Nov 10 '22 21:11

Damir Arh