Google SDK Unity – Native Google Sign-In Plugin

Google SDK Unity – Native Google Sign-In Plugin

A cross-platform Unity UPM package for native Google Sign-In on Android and iOS, supporting authentication, profile retrieval, email access, profile photos, ID tokens, and optional server authentication codes with seamless Unity 6 integration.

Unity 6C#Android JavaiOS Native SDKGoogle Sign-In SDKGoogle Play ServicesOAuth 2.0External Dependency Manager (EDM)GradleCocoaPodsUPM (Unity Package Manager)

Overview

GoogleSDK-Unity is a production-ready Unity Package Manager (UPM) plugin that enables developers to integrate Google's native authentication services into Unity applications. The package provides a unified C# API that abstracts Android and iOS platform-specific implementations while supporting Google account authentication, profile retrieval, email access, profile pictures, ID tokens, and server auth codes. The package includes native Android Java integrations, iOS Objective-C/Swift bridges, automated iOS post-processing, Google Cloud configuration support, External Dependency Manager integration, and sample scenes for rapid implementation. Designed specifically for Unity 6, the package resolves common compatibility issues involving GameActivity, Google Play Services, CocoaPods, Gradle dependencies, and sign-in callback handling.

The Problem

Google's official Unity Google Sign-In plugin has not been actively maintained for modern Unity versions and mobile platform requirements. As a result, developers face compatibility issues with Unity 6, modern iOS SDKs, GameActivity-based Android builds, CocoaPods integration, OAuth configurations, and Google Play Services updates. The original solution often fails on current iOS versions and requires extensive manual fixes.

The Solution

Developed a modern replacement for Google's legacy Unity Sign-In plugin, fully compatible with Unity 6, current Android SDKs, and modern iOS versions. The package provides a production-ready authentication framework with native Android and iOS integrations, automated dependency management, build-time configuration, OAuth support, and a simplified Unity API. The solution eliminates common compatibility issues and enables reliable Google authentication on the latest mobile devices.

System Design

Unity Application ↓ GoogleSignInManager (Unified C# API) ↓ Native Platform Bridge Layer ↓ ┌──────────────────────────────┬──────────────────────────────┐ │ Android Native Integration │ iOS Native Integration │ │ Google Play Services │ Google Sign-In SDK │ │ GameActivity Support │ CocoaPods Integration │ └──────────────────────────────┴──────────────────────────────┘ ↓ OAuth Authentication Service ↓ Google Identity Platform ↓ User Profile / Email / Avatar / ID Token ↓ Unity Callback System Editor post-processors automatically configure iOS URL schemes, plist entries, and native dependencies. External Dependency Manager resolves Android and iOS SDK requirements, ensuring compatibility across modern Unity, Android, and iOS environments.

More Projects