Expo: Change application configuration

Created on 16 Jun 2017  路  3Comments  路  Source: expo/expo

Hi,
I'm wondering how to change an expo app's configurations. Examples of what I mean by configurations:
Make the app only available for tablets, require location/wi-fi connection/bluetooth connection, specify multiple icon sizes, etc ...
I'm asking this because I generated an ipa, tried to build it with Application Loader but I got this error:

Missing required icon file. The bundle does not contain an app for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0

Does this have anything to do with exp.json ?
Thanks!

Most helpful comment

Hi, yes, those things are all configured in exp.json, and the details are in this guide.

For the specific error you reported with icons, make sure the icon you have specified in exp.json is square. If it's not square, it won't be valid for submission to Apple.

Let me know if this solves your issue.

All 3 comments

Hi, yes, those things are all configured in exp.json, and the details are in this guide.

For the specific error you reported with icons, make sure the icon you have specified in exp.json is square. If it's not square, it won't be valid for submission to Apple.

Let me know if this solves your issue.

Hi, thanks for your answer, resizing the icon to square values sure did the trick!
One more question about the guide though. If for instance I want to make my app only available for tablet (not for phones), should I play with the supportsTablet param or something else ? Also, is there an example of what can be put in the infoPlist param ?
Thanks!

We recently added tentative support for iPad-only builds with a key ios.isTabletOnly (instead of using supportsTablet at all). Looks like I forgot to document this, sorry, I'll add that to the docs.

The infoPlist param is just an arbitrary dictionary (e.g. { someKey: someValue }) which will be merged into your app's Info.plist before any other configuration.

Closing because I think we've answered your original issue - let me know if something doesn't work or feel free to open a topic on the forums.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pcooney10 picture pcooney10  路  3Comments

phenrigomes picture phenrigomes  路  3Comments

dflourusso picture dflourusso  路  3Comments

brentvatne picture brentvatne  路  3Comments

peacemind picture peacemind  路  3Comments