When I build with my app with ionic package and upload it with application loader it says the device family is iPhone / iPad.
Is there something I can change in the config to only allow iPhone? The app is not suitable for iPad or iPod touch.
Thanks
You can add the following to your config.xml
<platform name="ios">
<!-- accepted values are handset, tablet, universal -->
<preference name="target-device" value="handset" />
</platform>
https://cordova.apache.org/docs/en/latest/config_ref/index.html#preference
1 Like
Thanks mate, I knew it’d be something simple!
This doesn’t actually work with ionic package… Still shows as iphone, ipod / ipad as the device family in ituneconnect…
Must be a cordova issue.
echle
5
Hi,
any updates on that? It is still not working for me with ionic package.
Best regards
I never got it to work. Ended up just going back to xcode to compile the app.
ekipea
7
Any update ? I have same problem when using ionic package, it doesn’t follow target-device config.