Camera stuck on reload in Google cardboard + unity app - ios

I am developing a simple VR app for iOS using the Google Cardboard SDK with the latest version of Unity. When I build the app and run it from XCode on my iPhone, it works fine, and the camera tracks as it should. However, if I relaunch the application, the camera becomes stuck and does not respond to movement of the phone. The app is not frozen, however, as I can still interact with the screen.
Interestingly, the camera becomes unstuck if I tap the settings gear icon in the bottom center of the screen, and then hit the back button. It also becomes unstuck if I simply hit the home button and then reopen the app (without relaunching it).
Has anyone faced a similar problem and know how to overcome it?
Thanks so much!

It seems that installing the Cardboard SDK into Unity added an extra "Cardboard" Game Object. My problem was fixed when I deleted that object.

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.

Unity3d always shuts down when launching on iOS

I have a weird bug with my game on iOS platform.
When I build it from xCode it works great no matter how many times I run it. When I leave that build on iPhone 6s for one day it can't be opened anymore. When I click on icon it only shows black screen and then returns to home screen. If I double click menu button, the game is in active tasks and I can see that the game was loaded. But it cant be opened. Its like its always minimised or that graphics are failing.
I am using Unity 5.3.4f1 and graphic api is set to OpenGLES 2.0.
Has anyone else run to a problem like this?
Any suggestions or fix?
Edit:
So after testing it turns out it only happens with build from xCode and not with version that is on app store. So I guess it has something to do with provisioning profiles or similar.

iOS 9 "Back-To-App" button quickly disappears

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.

Not able to check whether user opens app from lock screen OR from home button press on ios 8

I am developing an application where i want to know whether user opens the app from Home button press OR by auto lock/By pressing the Lock button of device. I was google for the things, but for the solutions are not compatible with ios 8.
I have gone through below link but not working in my case:
Detecting when app is becoming active from lockscreen vs other on iOS7.
please help me. Getting stuck on this point from couple of days.
Any help will be appreciated.

iOS Safari, when running our web-app in stand alone mode, crashes iOS in background

We're developing a web app that extensively uses Cavas 2D for some demos, and is successfully running on both iOS and Android devices. Recently we've added stand-alone mode for iOS devices, so user has to "Add-To-Home-Screen" and run it using screen icon, just like regular app.
What happens recently is that after 10-12 times we start the web app on iPhone4:
Status bar (initially set to 'black') suddenly turns white and we cannot exit Safari (by pressing home button).
If we try to make screen shot (home + power button), shutter sound is played as if screen shot was taken and saved.
If we try to lock the device (power button), screen turns black, but no action after that can bring unlock-screen or any screen for that matter - display remains black.
We can only do reset by pressing home + power for 10 seconds after this point.
If we do not lock the device, web app continuously work with no issues at all, it does not crash, but cannot exit it (double click on home button also has no result).
Has anyone experienced this with their web apps?
Any guidance in how to debug this would be highly appreciated. We've tried using Safari on OSX, connect iPhone to it and use Develop -> iPhone menu but no luck so far.
Thanks in advance!
I would start trying to debug by running XCode with the iPhone connected to the computer.
In XCode open "Organizer" and go to the tab "Devices".
You should see your device there, from which you can view the iOS console. That might be able to tell you what is going wrong with the phone stops responding.
I don't think you have to put the phone in development mode (or be a paid developer) to see the iOS console.

Resources