{"id":22104763,"url":"https://github.com/hiyorin/googlesigninplugin-for-unity","last_synced_at":"2025-08-30T10:42:56.700Z","repository":{"id":176462916,"uuid":"125031289","full_name":"hiyorin/GoogleSigninPlugin-for-Unity","owner":"hiyorin","description":" A set of tools for Unity to allow handling Google Sign-in for Android and iOS.","archived":false,"fork":false,"pushed_at":"2018-03-24T08:54:18.000Z","size":30056,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T06:29:23.790Z","etag":null,"topics":["android","google-sign-in","google-signin","ios","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiyorin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-13T10:08:43.000Z","updated_at":"2024-10-03T09:46:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fd5525d-1f72-4bea-b645-a0138efa7cd3","html_url":"https://github.com/hiyorin/GoogleSigninPlugin-for-Unity","commit_stats":null,"previous_names":["hiyorin/googlesigninplugin-for-unity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiyorin/GoogleSigninPlugin-for-Unity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyorin%2FGoogleSigninPlugin-for-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyorin%2FGoogleSigninPlugin-for-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyorin%2FGoogleSigninPlugin-for-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyorin%2FGoogleSigninPlugin-for-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiyorin","download_url":"https://codeload.github.com/hiyorin/GoogleSigninPlugin-for-Unity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiyorin%2FGoogleSigninPlugin-for-Unity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839672,"owners_count":25001862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","google-sign-in","google-signin","ios","unity"],"created_at":"2024-12-01T06:34:32.577Z","updated_at":"2025-08-30T10:42:56.686Z","avatar_url":"https://github.com/hiyorin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoogleSigninPlugin\nA set of tools for Unity to allow handling Google Sign-in for Android and iOS.\n\n# Install\nGoogleSigninPlugin.unitypackage\n\n# Settings\n#### Create settings file\n* Menu/Settings/Google\n\n#### Android\n* Setting ClientId and ClientSecret to GoogleSettings.asset\n\n#### iOS\n* Setting ClientId and UrlScheme to GoogleSettings.asset\n\n#### Editor\n* Setting ClientId and ClientSecret to GoogleSettings.asset\n\n# Usage\n```cs\nusing GoogleSignIn;\n```\n\n#### Example: Sign-in\nCall the \"SignIn\" method and check the items you want to get.\n```cs\npublic IEnumerator Example()\n{\n  yield return GoogleSigninPlugin.Instance.SignIn(\n    requestEmail:true,\n    requestId:true,\n    requestIdToken:true,\n    requestServerAuthCode:true,\n    requestProfile:true);\n   \n  Debug.Log(GoogleSigninPlugin.Instance.Email);\n  Debug.Log(GoogleSigninPlugin.Instance.Id);\n  Debug.Log(GoogleSigninPlugin.Instance.IdToken);\n  Debug.Log(GoogleSigninPlugin.Instance.ServerAuthCode);\n  Debug.Log(GoogleSigninPlugin.Instance.DisplayName);\n}\n```\n\n#### Example: Sign-out\n```cs\npublic void Example()\n{\n  GoogleSigninPlugin.Instance.SignOut();\n}\n```\n\n# AndroidManifest.xml\nReplace main Activity.\n```xml\n\u003c!--\n\u003cactivity android:name=\"com.unity3d.player.UnityPlayerActivity\" ...\n--\u003e\n\u003cactivity android:name=\"com.hiyorin.googlesignin.CustomUnityPlayerActivity\" ...\n```\n\n# When using your own main Activity\nPlease pass the value of OnActivityResult of your Activity\n```cs\npublic void Exapmle(int requestCode, int resultCode, AndroidJavaObject data)\n{\n  GoogleSigninPlugin.Instance.AndroidActivityResult(requestCode, resultCode, data);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiyorin%2Fgooglesigninplugin-for-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiyorin%2Fgooglesigninplugin-for-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiyorin%2Fgooglesigninplugin-for-unity/lists"}