- Home /
On iOS .. actually go to the GameCenter app?
Sort of an odd question,
of course in a game it is very easy to simply quit the game, and launch Safari ...
Application.OpenURL("http://www.eatMoreMeat.com");
Can you quit the game, and launch the GameCenter app ??
(Note. I am not talking about GC "popups" that appear over game play courtesy iOS. I simply mean the ordinary GC application, which you can launch any time on your iPad by clicking it's icon.)
Today's weird question.
Interestingly the guy who won the bounty on the fb question happend to post some code which did this exact same thing:
Application.OpenURL("fb://profile/447312341955455");
Which would open the facebook app on ios..
Answer by ByteSheep · Apr 12, 2013 at 10:20 AM
In fact, this is precisely how you do it in a Unity / iOS app:
Application.OpenURL("gamecenter:");
(Interestingly during development, on your Mac in the Unity Editor when you press Play, this will open the Mac OSX GameCenter application.)
An interesting open question is, can you make it open in gamecenter showing a SPECIFIC app (presumably your own app).
This looks interesting
http://fredandrandall.com/blog/2011/07/30/how-to-launch-your-macios-app-with-a-custom-url/
http://stackoverflow.com/questions/5065982/android-custom-url-to-open-app-like-in-ios
http://stackoverflow.com/questions/6226195/game-center-url-scheme
Typing gamecenter: in the url of your safari browser will open the gamecenter app.
So you could do:
Application.OpenURL("gamecenter:");
Just to add to the answer if someone else finds this, if you want it to go to the specific game and for example show the achievements you can use:
Social.ShowAchievementsUI();
Your answer
Follow this Question
Related Questions
Gamecenter achievement already reported 1 Answer
Gamecenter in ios 0 Answers
When will Social.ReportScore() fail? 0 Answers
Add achievement into Game Center - Apple Store 0 Answers
[Android] GameCenter Social.localUser id uniqueness 0 Answers