IOS app is greyed out after pressing home - ios

I have an IOS swift app that I'm working on that seems to run fine. When I press the home button to exit it while running, the app icon turns grey and I can't go back into the app nor delete it. The only way tot go back is if I double tap the home button and find the app under all the running apps. What is causing this issue?
I was trying to change the app name and maybe messed up some setting because even earlier iteration of the app doesn't work so it's not a bug in code.

Related

libGDX iOS home button kills the game

I'm developing a libGDX game for Android and iOS (MobiDevelop's RoboVM fork). Android works perfectly, but I have a issue on iOS. When the iPhone home button is pressed to leave the game, and I launch the game again by tapping on icon, the game does not resume from where it was paused, but instead restarts, which means the loading screen is displayed, all assets are reloaded, and the main menu appears. Like a fresh/new start of the app. I do not have any specific configuration for the iOS module in my libgdx project and am using what was pregenerated.
Is it possible to tell iOS that I do not want to kill the process? I want to switch to pause/sleeping mode only.
I found a reason of this problem. I tested it on the real device, therefore I was unable to see a logs. When I switch to simulator and look at the logs, I found a NullPointerException. This was a cause of application crash. When I fix this bug, everything works as I expected. After iPhone home button is pressed, pause() method of com.badlogic.gdx.Screen is called and after rerun the game, it continues from exactly where it stops / pauses.
I learned a lesson: make a tests on simulator at first :-)
While I am entirely unfamiliar with libGDX, I can tell you that except for a few very specific cases (VOIP etc.), you cannot control what iOS does with your app when the home button gets pressed.
Furthermore, it is the responsibility of the developer to save the app's state when the app leaves the foreground since this is not something that is or can be handled automatically in a performant way.

Xcode9 made my Iphone7 screen go black

I launched an app with my own iphone7. the app had nothing on it. It is a single page application in IOS. when I ran the app it made my phone's screen go black. I can still get messages and it makes sounds, but the screen is black so I can not use it. How can I fix it?
I assume you're still running the app itself, and because your app has no content, it shows a black screen by default. If that's the case, you can forcibly terminate the app by double-tapping on the Home button, and then swiping down on the problematic app.
As an alternative, you could try soft resetting the device itself, by holding the Sleep button and the Home button at the same time for 10 seconds.
As a last resort, you can hard reset the device under Settings -> General -> Reset -> Erase All Content And Settings. Note that this will erase everything on the device, so should only be attempted if nothing else works.

iOS App Doesn't Open First Touch

Whenever I click on my app's icon, it animated the user interaction but doesn't open the app.
This only happens sometimes after I navigate to other apps can come back.
Figure it out.
It was because the app was from an Xcode build and not from the App Store.

ios "Slide to View" never launches app after push notification

Im working on an IOS app in 7.1 using APNS. I get the push
notification successfully, however it never seems to launch my app
after I "Slide to View". APNS works successfully when app is in "Active"
state, and even when the device is still lit but at the home screen (no
apps running except in background), it will launch and go to the screen i want.
From everything Ive read, this should enter at 'didFinishLaunchingWithOptions'
Ive tried running the app in XCode, then hitting the home button and waiting for
the screen to timeout and go blank, then pushing a notification to see if I could
breakpoint it but that didnt work either.
Suggestions? or better way to debug this?
Any help is appreciated.
Thank you!
Turns out this is not a problem. Text messages behaves this way already.
I had thought that it launches the app but it does not, it only opens to
the home screen. Not an issue now.

iPad - iOS 4.2 Force a app to shut down

We are testing our app on an iPad with 4.2 on it.
How do we force the app to stop. We are testing the initial load section of code and of course that only fires when the app starts up.
Reminds me of a similar issue on our Android apps....
Double-click the home button, hold your finger down on the app, and then tap the red minus sign.

Resources