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
1
Question by Srimasis · Nov 18, 2014 at 03:56 AM · apiamazon

How to implement Amazon Gamecircle

I downloaded the gamecircle api of amazon from asset store and I am following this tutorial from amazon https://developer.amazon.com/appsandservices/apis/engage/gamecircle/docs/unity-setup

I am stuck at section 1 step 3. The codes are in c# ( I use JS) and I really can't understand what to do next. Any help is appreciated. Thanks...

Comment
Add comment
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

2 Replies

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

Answer by psycocrusher · Nov 18, 2014 at 07:00 PM

I used this for and older version of the plugin but it should be almost the same.

 private var usesLeaderboards : boolean = true;
 private var usesAchievements : boolean = true;
 private var usesWhispersync : boolean = false;
     
     
 function Start () {
 
          AGSClient.Init (usesLeaderboards, usesAchievements, usesWhispersync);
 
         //Will return true if service is ready
         var isServiceReady : boolean  = AGSClient.IsServiceReady();

         //To show Leaderboards use this: 
         AGSLeaderboardsClient.ShowLeaderboardsOverlay();

         //To show achievements: 
         AGSAchievementsClient.ShowAchievementsOverlay();

         //To submit scores, replace with your variables:
         AGSLeaderboardsClient.SubmitScore("YourLeaderboard",YourVariableToSubmit);

         //To unlock achievements:
         AGSAchievementsClient.UpdateAchievementProgress("YourAchievement",100); 
     }
 
 
 function OnEnabled(){
 
         AGSClient.ServiceReadyEvent += serviceReadyHandler;
         AGSClient.ServiceNotReadyEvent += serviceNotReadyHandler;
     }
     
 function OnDisabled(){
 
         AGSClient.ServiceReadyEvent -= serviceReadyHandler;
         AGSClient.ServiceNotReadyEvent -= serviceNotReadyHandler;
     }
 
 
 function serviceNotReadyHandler (error : String){
 
         Debug.Log("Service is not ready");
     }   
    
 function serviceReadyHandler (){
 
         Debug.Log("Service is ready");
     }
Comment
Add comment · Show 8 · 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 Srimasis · Nov 19, 2014 at 07:11 AM 0
Share

$$anonymous$$any thanks Sir for this code. I still don't understand Section 2 step 2 from the above link. Do you have the code to implement that?

avatar image Landern · Nov 19, 2014 at 07:13 AM 1
Share

@Srimasis, that's not code, that's the manifest file. It's X$$anonymous$$L and specific to YOUR game hosted on amazon.

avatar image Srimasis · Nov 19, 2014 at 07:26 AM 0
Share

@Landern Thanks but how to add the package name is step 2

avatar image Landern · Nov 19, 2014 at 07:35 AM 0
Share

@Srimasis, using your keyboard, type in what you see(or whats missing from the activity) in your manifest, the package name is generally something like "com.somecompany.sub.sub.gamename", you're choice, probably has to be unique.

avatar image Landern · Nov 19, 2014 at 07:54 AM 1
Share

@Srimasis, it is typically created during the build temporarly. however, you can add a "Android$$anonymous$$anifest.xml" to Assets->Plugins->Android folder and it will be included, what you put in there will be merged when you build the apk.

During the build, i think it's in Temp\StagingArea, the manifest being used by default, you may be able to use that as a starting manifest.

Show more comments
avatar image
1

Answer by VicCorvalan · Feb 11, 2015 at 01:52 PM

Hello, I wrote a tutorial of how to implement GameCircle in Unity3d using Social API... I think is more easier that way... you can take a look in my post

Comment
Add comment · Show 3 · 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 crecente · Jul 21, 2016 at 06:48 AM 1
Share

nothing there :-(

avatar image Pescode · Jul 21, 2016 at 01:36 PM 0
Share

Sorry, tumblr changed the URL of my blog... this is the http://bewarefish-blog.tumblr.com/post/110631442536/integrating-amazon-gamecircle-with-unity3d-v46

But some people reported that is not working anymore... the problem that I face was that in my device sometimes I wasn't able to log in... I have to restart my device and open my app again to make it work...

avatar image chico_barnstorm · Jul 25, 2017 at 09:37 AM 0
Share

This line of code did the trick for me! I couldn't find it anywhere else but in that post. Thanks!

Social.Active = GameCircleSocial.Instance;

It seems to be fine in Unity 5.6.1f1, using the latest Unity's Social API and Amazon's GameCircle SD$$anonymous$$.

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

31 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I prompt for login in the Social API? (GameCircle) 0 Answers

How can I use Taget API Level 28 in Unity 5.6.x? 0 Answers

The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) why does Microsoft.Azure.Cosmos.Table NuGet not work in a UWP project? 0 Answers

When I change the target API from 29 to 30 in Unity 2019.41f1 and check it on the actual device, it crashes right after it starts. 0 Answers

Convert C# to JS 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