Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CrossRiverGames · Jan 22, 2015 at 05:59 PM · iosnot workingsocialgame center

Game Center integration not working on devices but working on simulator

I'm trying to update an iOS game but am having trouble with the Game Center integration. What is really strange is that it works on the iOS Simulator but not on an actual iOS device. I've narrowed the problem down to this code:

 using UnityEngine;
 using UnityEngine.SocialPlatforms;
 using System.Collections;
 
 public class SocialStart : MonoBehaviour {
 
     public static bool loggedIn;
 
     // Use this for initialization
     void Start () {
         Social.localUser.Authenticate(ProcessAuthentication);
     }
 
     void ProcessAuthentication(bool success)
     {
         if(success)
         {
             Debug.Log("Authenticated");
             loggedIn = true;
         }
         else
         {
             Debug.Log ("Authentication failed");
             loggedIn = false;
         }
     }
 }
 

When I run the game on the iOS Simulator I can access the leaderboards, achievements, etc. from within the game, but when I try to run it on an actual iOS device (an iPad 2) I get the "Authentication failed" message in the Xcode debug window; thus, the Authenticate call in the Start() method is failing for some reason. However, I do not know that reason. Any help would be greatly appreciated. Thank you!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CrossRiverGames · Jan 31, 2015 at 03:35 PM 0
Share

I still have no clue why this is not working. Any help would be greatly appreciated.

avatar image CrossRiverGames · Feb 09, 2015 at 05:43 PM 0
Share

I tried updating my Unity installation and...no luck. I still have no clue what is going on and any help would still be greatly appreciated.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by CrossRiverGames · Feb 09, 2015 at 06:00 PM

Well, it turns out that the Game Center integration was looking for a sandbox (which was exactly what I wanted it to look for) but the sandbox on my device's Game Center was turned off. Turning on the sandbox fixed the problem.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rocket5tim · Nov 04, 2015 at 08:34 PM 0
Share

Thanks! I was having the same issue on my iOS 8.1.2 device. Enabled Sandbox in device settings and now the login window appears in game correctly.

avatar image hexagonius · Nov 26, 2015 at 03:43 PM 0
Share

Have you guys any idea how to access sandbox mode without that toggle since its gone with iOS 9? I have tried everything and not seen the talked about sandbox text anywhere. Not even managed to access it by accident as it seems.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Game Center login windows popups after hiding an app 0 Answers

Launch game center app from my ios game 0 Answers

Game Center completing achievement not working 2 Answers

ILeaderboard on iOS is not working? 0 Answers

In App Game Center Leaderboard and Login use Device Orientation and Change Unity Orientation in the Game 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges