- Home /
Can't open GameCenter after get in background
The first time I press button to open GameCenter view is ok and it's appeared. But if I press the home button then open the app again, the GameCenter view disappeared, and if I try to open again, it doesn't work any more! The Xcode debug show the the view is already presenting! Also the third party just like twitter, when I click to share to twitter is ok. After come back from background the view disappared!
Thanks if any help
I found a way to fix the bug. In the xcode project - UnityAppController In: applicationDidBecomeActive delete if(_snapshotview) {.....} In: applicationWillResignActive delete last few lines _snapshotView = [self createsnapshotView]; if (_snapshotView) {....} I don't know why the unity needs to create the snap view itself. With these codes, the view hierachy changed, but the gamecenter view controller is still cached in the rootViewController.presentedViewController. While you try to present again it won't work as loged in xcode.
Your answer