Spaces are not respected CFBundleDisplayName

Hi all, I am wondering how Google Calendar is able to maintain a space in it's display name on iOS. While non of my apps can. I've tried everything under the sun including adding "& # x 2 0 0 7;" without spaces as a space in the bundle display name. Nothing works.

I am trying to name my app "Toronto Hydro" it's 13 characters including the space. It seems anything > than 12 characters results in the removal of white spaces. Yet apps like "British Airways" are able to maintain a space. Do these companies have special contracts with Apple? It seems they are doing some hack and that is has explicit permissions from Apple. Seems super shady.

Any ideas that aren't already mentioned on Stack Overflow or thoughts? 

@eskimo what's the deal. I want official response from Apple.

Did you try inserting a non secable space (option-space) ?

.

I want official response from Apple.

Then the forum is the wrong place to ask. Contact support or file a bug report.

.

Any ideas that aren't already mentioned on Stack Overflow

You are kidding I guess… Better tell what you have tried. No one will go and search for what you may have seen or not on SO.

Firstly thank you for responding @Claude31.. Here is what I've tried:

  1. Product name is "Toronto Hydro" i.e CFBundleName
  2. Bundle display name is "Toronto Hydro" CFBundleDisplayName
  3. I've tried to add Toronto Hydro for both CFBundleName and CFBundleDisplayName
  4. I've tried to add Toronto Hydro for both CFBundleName and CFBundleDisplayName

The documentation says 30 characters max. It says nothing about stripping spaces from names with > 12 characters. Perhaps I have poor reading comprehension or perhaps there is undocumented functionality that is not described anywhere that people at Apple and Google are aware of.

I've never used these forums so forgive me for assuming you get official apple response in these threads when almost every other thread seems to have a response from @eskimo.

Are you sure this isn’t just the behavior where iOS tries to squeeze whitespace to make the label fit without truncation? That’s based on the actual size of the text on screen rather than the length in characters.

That said, I tried display name Toronto Hydro on a few different simulators here and it seems ok. The space does get squished a bit on the iPhone SE (1st gen.) but looks normal on larger simulated devices. Are you seeing this problem on all display sizes and all iOS versions?

A couple sanity checks would be to:

  • Test with simple cases such as A B and iiii iiii iiii.
  • Test outside your app by making a Home Screen folder, and then manually rename it to Toronto Hydro. I believe folder labels should render exactly the same as app display name. Any difference?

EDIT: This only happens when deployed to a physical device and the app is installed through Testflight. So Emulators and local apps attached to Xcode debugger will render the name perfectly fine. But this absolutely fails when the app is Archived -> Uploaded to Testflight & Installed.

Ah, so this is only on TestFlight? Could be due to the yellow dot in front of the label. That reduces the available space and could conceivably trigger different shrinking logic. Unfortunately there’s nothing you can do about that, and the same thing will happen when there’s a blue dot after an app update.

In fact, now I can get the perfect removal of the space with simple labels of * Toronto Hydro, - Toronto Hydro, and • Toronto Hydro. I think your label text just happens to be just right to trigger this effect when a marker character is prepended.

Spaces are not respected CFBundleDisplayName
 
 
Q