- Home /
Google Play Services for iOS hangs app when exiting
I'm using the Google Play Services plugin from: https://github.com/playgameservices/play-games-plugin-for-unity
Android version works just fine, but my iOS version has a problem of not completely exiting the app if I do the Google Play Authenticate; if I don't Authenticate, then it will terminate correctly.
There is some assembly code displayed in the Xcode editor about __psynch_cvwait under callback_queue after I try exiting my app that did an Authenticate.
Everything else about it works fine, Leader Board and Achievements are okay, it just freaks out when I exit my app using Application.Quit()
Xcode 6.1.1 Unity 4.5.5f1 imported GooglePlayGamesPlugin-0.9.11.unitypackage
has anyone see anything like this ?
Thanks for any help
[EDIT]
I've read that one should not use Application.Quit() in iOS Apps. I tried to use the Quit in the PlugInDev MainGUI ( added an Exit button ) and got the same results. The Quit was working fine until I added the Google Play stuff, but know I guess I'll check if it is type IPHONE and not display the Exit button in my app ( which I have in both iOS and Android )
Exactly the same problem goes with me on android as described in that topic. Still couldnt get an answer. http://answers.unity3d.com/questions/880350/unity461gps-plugin-freeze-problem-on-exit-on-andro.html
Answer by khos85 · Jan 14, 2015 at 10:57 PM
Hi, have you tried looking at some other sample apps to see how those are coded, then you could compare to yours and modify if/as needed. Maybe there is some api call you need to use.
Maybe this link could help: https://github.com/playgameservices/ios-basic-samples
Thanks khos85
I never saw those samples.
basically my error was using Application.Quit inside of an iOS app it didn't work right after adding in the Google Play stuff.
Thanks again for the link
Your answer
![](https://koobas.hobune.stream/wayback/20220613180116im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Google Play Games Services - authentication fails 4 Answers
Google Services work from APK but not from store 0 Answers
Google Play Services authentication problem. Failing to sign in ! 6 Answers
Minimal project can't able to authenticate 1 Answer
Google Playgames sigin UI not appearing and not throwing any Error 1 Answer