[TIMOB-7664] iOS: Allow for custom Info.plist values via tiapp.xml
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-26T16:45:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0, Sprint 2012-09 Core |
Components | iOS |
Labels | core, iOS, module_build, parity, qe-testadded, tiapp.xml |
Reporter | Shannon Hicks |
Assignee | Max Stepanov |
Created | 2012-01-23T15:38:06.000+0000 |
Updated | 2013-05-11T07:41:11.000+0000 |
Description
It would be great if we didn't have to create our own Info.plist file to override common values. We can already specify android manifest parameters in tiapp.xml.
Examples:
I need an app with a shorter name for the Home screen (Bundle Display Name)
I would like to have a custom url scheme (URL Schemes array)
I want to specify all my icon files for a universal app (Icon files)
Since Info.plist is an XML file anyway, it seems like the same logic that went into the Android Manifest section of tiapp.xml could be applied here.
This would be something *really great* to have in 1.9 to bring parity between iOS & Android.
Example *
The existing *
PR pending https://github.com/appcelerator/titanium_mobile/pull/2053
Testing
----Build an application with the
** CFBundleDevelopmentRegion = German ** CFBundleURLTypes includes a section with CFBundleURLName com.developer, and CFBundleURLScheme dev ** UIApplicationExitsOnSuspend = truetiapp.xml
containing the segment above. Should have the following:Build an application with a
tiapp.xml
*without* the above segment. Should compile and run as normal.The whole reason I submitted this ticket was so that I could change the CFBundleDisplayName in tiapp.xml instead of having to create a custom plist. My third most common use case is so that I can set multiple icons with CFBundleIconFiles. I specified both of the use-cases in my initial description, so closing this ticket as resolved isn't really accurate.
If
CFBundleDisplayName
cannot be properly overwritten, that is now a bug (not a feature). Please file a separate ticket for it rather than reopening this one.CFBundleDisplayName is a generated property which is copied from
Max, That's exactly the problem, it's auto-generated according to the Name. I need different values for iOS and Android, because iOS doesn't provide as much space for the name on the home screen. I can customize things on the Android side by changing manifest properties in
Closing issue Tested with Ti Studio build 2.1.0.201206121914 Ti Mobile SDK 2.1.0.v20120612170248 hash r40ba370b OSX Lion 10.7.3 iPhone 4S OS 5.1 Tested with the sample segment. Since the fix did not include the ability to detect custom names for iOS and Android I did not test it.
The "Additional iOS steps" in the docs (http://docs.appcelerator.com/titanium/latest/#!/guide/Custom_Fonts-section-29004935_CustomFonts-AdditionaliOSsteps) should still be updated to reflect this.