iPhone app is running at iPhone 4 size with black bars after update
Asked Answered
B

3

8

Previously the app supported the iPhone 5s/SE screen and iPhone 6-8 screens (not the plus sizes), this was done using launch images. So on Plus sized devices and iPhone X* devices it would display black bars above and below the app.

We then released an update where among other things a launch storyboard was added. All through the development of this update the screen size worked perfectly on every device we had. However after releasing the update on the App Store, for some users, the app now shows at iPhone 4 size (height/width ratio is 1.5). So now affected users on an SE have the black bars, and X* users have bigger black bars the before. This doesn't seem to affect everyone, and we can't replicate on our devices.

The deployment target is 10, so there should be no reason to use the old launch images method. And the update is definitely using a storyboard for the launch screens.

Has a similar thing happened to anyone else? Or is there something you have to do specially when releasing an update that moves to the storyboard method from individual launch images?

All the existing answers either say to make sure you have the correct screenshots, or use a xib/storyboard. We don't have any screenshots and are definitely using a storyboard.

EDIT: now after a few hours of restarting the app users are starting to see the correct sizes, implying it’s an iOS caching issue.

Bellicose answered 11/2, 2019 at 21:11 Comment(4)
Probably a duplicate of #35192925 (and others). This caching issue has been discussed many times here.Entropy
That question does not help with it happening for an app that is updated over the App Store with the problem happening to real users, where you can't tell them all to restart the device (or even uninstall and reinstall the app). Also here it doesn't seem to just be a caching issue, as that doesn't explain the black bars getting bigger than they were before, or appearing on devices that didn't used to have them.Bellicose
I think we can explain that: the runtime now sees no launch images, and it doesn't yet see the launch screen storyboard, so you turn into an iPhone 4. And the fact is that I've seen app updates on the App Store where they do try to tell their users to restart or uninstall/reinstall. I hope you'll file a bug report with Apple about this; you won't be the only one, but the more the merrier if we want them to do something about it.Entropy
Thanks that would explain it thought it seems very odd that a cache could work in a a way that the old data is deleted due to new data, but not replaced by that new data. We've submitted a Technical Support Incident to Apple, so hopefully that gets somewhere. And our data suggests it is happening to about 8-10% of users (which is a lot), and we reply to anyone who leaves feedback on social media/app reviews/etc, but that is far less than 8%. And with auto updates (and we're doing a phased roll out) no one really reads the App Store release notes anymore.Bellicose
S
6

I have experienced it lot before.

Reason: iOS commonly keeps launch screens of all apps in its own cache system, So, unless your app get loaded,it can show that launch images/screen to user from cache. Now, As your app was previously having launch images and now moved to storyboard, it makes this problem.

Also note that, iOS always render your app in screensize which it have in launchscreen, thats why you are seeing black bars at top and bottom.

Way to reproduce: This will happen everytime you update your launch screen. Try adding some label or some other component to your launchscreen.storyboard and install it. You will not see updated launch screen for some duration.

Best Solution(It works almost for all): Just update your app's version number and install on the device. After version number get updated, it will take new updated resources.

If above solution didn't worked for you, then you can try for these alternate solutions:

Solution 01: Your user might have to delete older app and install new one

Solution 02: Your user needed to reboot their device after update.

Solution 03: iOS System itself refreshes its own cache after certain interval, so your customers might face issue just after updating... but will get resolved automatically after some duration(around 3-4 hours).

Surrebuttal answered 20/2, 2019 at 10:37 Comment(2)
>>> iOS commonly keeps launch screens of all apps in its own cache system Could you please point us to documentation chapter about this?Eloiseelon
@EvgenyKarkan: Apple never releases any documentation related to their private-apis, or their system detail. But if you jailbreak your phone, and by terminal(after jailbreaking you will have terminal on your iphone and you can navigate to any system directories), exploring different system folders, you can check that it is been kept in system directories.Surrebuttal
B
2

I experienced similar issues with LaunchScreen Storyboard changes and when switching from Launch Images. It is an iOS Bug, sometimes you need to reboot the device in order to see the correct LaunchScreen when changes are made, it is very odd and difficult to reproduce. Most probably there is nothing wrong with your App...

Boschvark answered 17/2, 2019 at 19:30 Comment(0)
F
0

Yes Jonathan, it has happened to others as well.

Sadly it seems that this is a real iOS issue, the problem is real (those negationists please believe).

I called the Apple Support and the developer/support staff that I talked with, seemed aware and/or heard the issue, although the response was unclear I did, nonetheless, report the issue properly. "They will check it out". Typical Apple sideways answer...

Now, current solutions:

It seems that what has worked is the On/off iPhone solution, drastic and heavily inconvenient but currently it's the only workaround "tested".

I am deeply sorry for not solving you inquire straight, but I think this affair is beyond any of us developers field of action, it seems (yet to confirm) an OS problem, which Apple and only Apple can fix for real.

Fossorial answered 24/2, 2019 at 0:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.