Short description of the problem: First time when the app is opened the splash screen appears normally and than it is followed by the home screen. But after the app was closed from taskmanager (double click on home button and swipe up) and opened again, the previous(cached) home screen appears(flashing) for a very short time before the Splash screen appears. I think every iOS app running on iOS 11.4 (ios 9 and 10 not affected) is affected not just mine. As you can see below(slow motion video), I could reproduce it with the Twitter app also - firstly it opens normally and at the second time the problem appears.
My application is suffering constantly from this issue in a predictable way, but the Twitter and other apps are not. They produce this symptom every now and again but than nothing for the following 5-10 try. With normal usage - if I don't terminate the app manually or there are a few app opened between mine is closed and reopened - the problem is not appearing.
The question is, is there a workaround for this issue?
Try adding this line of code in didFinishLaunchingWithOptions:
UIApplication.shared.ignoreSnapshotOnNextApplicationLaunch()
Related
In iOS 11.2 application I have noticed an unusual behaviour (opening forcefully closed apps, sometimes shows the previously visible view and redirect to the launch screen), I don't know whether it is bug with OS or something else but it can sometime appear in Google app also.
You can find the related video in below link.
https://s3.amazonaws.com/uploads.hipchat.com/37040/3355524/7K3EL8N5X55tN8p/ScreenRecording_12-13-2017%2013%3A23.MP4.
Please help me to figure it out whether it is a feature or bug.
In my opinion, it's rather a bug or just normal behaviour, not a feature. There is some time before the app is dropped from the RAM, used to save some data, e.g. in appWillTerminate, etc., but it should not make an effect like you have observed. From the second hand, maybe device holds the image of how app looks like before the rage quit and shows it up, then freshly opens the app.
My App is taking around 10 seconds to launch.
To be clear, 10 seconds is the time between when i press the app icon and splash screen appears.
I have tried to put timer on main and didFinishLaunchingWithOptions calls. but it seems that these are getting called after the 10 seconds only.
To add some more details here,
This is the update of the app. Previous version of the app was/is working fine on the same device (iOS 8.3 OS), But not the current app.
The main difference between the two updates (except few new features which come into effect after launch only) is the change in the coredata-model.
For which , I have added a new dataModel-filename_2.xcdatamodel file.
Any idea/suggestions on how can I fix this launch time issue?
Edit: Just to add, I am not facing this issue on the "iOS 9". But there is one "iOS 8" iPad on which I am seeing this issue to the extent that app takes long to even come up from background (not just fresh launch). But Can't generalize this, I have tested on 2 devices only.
I made an iPad app using Flash Builder and Adobe AIR and it has been working fine. Recently I updated to iOS 9.2, I noticed that when I launch my app from Safari, the button of "Back to Safari" only shows for less than half a second and quickly disappears. I tried this function in other apps, such as launching any app from iTunes, that button always sticks there for a long time.
I did some research and haven't found anything so far. I am hoping to get some help here. Thank you in advance.
I'm testing my iOS app on my iPhone 4S (running iOS 6 or lower, I believe), which is a simple web browser. When I double tap the home button, close the app (by pressing and holding it, and clicking the "X" which appears), and click the icon to run it again, the app is frozen on the page it was on before being closed. When I then close and click the icon again, it doesn't load; the app simply stays open as a black screen, and doesn't even crash. How can I solve this problem?
Edit: My iPhone is running iOS 6.0. And I cannot see anything in the logs as I completely stop running the app. I'm new to iOS dev, so please be kind!
Edit 2: Issue solved. See my answer below.
The only option I can suggest you here is to debug your app. Whenever the app opens up after being terminated, didFinishLaunchingWithOptions in your AppDelegate class is called.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Try putting a breakpoint in there and check whats going on. Apart from this I cannot help you much.
I solved this issue by restarting my device (pressing and holding the power and home buttons). It seems the error was in some deep-ingrained code, and not in my own code I had written myself.
How to disable autoscreenshot of window when app switching in iOS 6 ?
I am launching app in iOS 5, and switching to other app with 5 fingers (slide gesture). Then back to first app, and while app is scrolling, i see a Default.png image. This is good.
But in iOS 6, while app is coming, i see a screenshot of app window, it seems, which was made when app is go to background. This is bad, because screenshot was made in old time and showing to user wrong image, and after app is activating, image is changing at quickly to true. In some case, screenshot is actually, but after 2-3 tryes, screenshot is very old.
Anybody knows, how to disable autoscreenshot OR maybe resolve problem with screenshot, for screenshot will be do at every time, when app is switching?
Thanks