跳到主要内容

Alogame SDK

Integrate authentication, payments, analytics, and push notifications into your Android, iOS, Unity, or H5 (web) game.

SDK v2 only

New games must use SDK v2. Android · iOS · Unity

Choose your platform​

Android

  • Kotlin / Java
  • API Level 24+
  • JitPack · Kotlin/Groovy DSL

Start Android integration →

iOS

  • Swift
  • iOS 15.0+ · Xcode 15+
  • Swift Package Manager

Start iOS integration →

Unity

  • C# · Unity 2022.3+
  • Android 24+ · iOS 15.0+
  • UPM package (git URL)

Start Unity integration →

Web (H5)

  • TypeScript / JavaScript
  • Any modern browser
  • npm or CDN <script>

Start Web integration →

H5 games are login + analytics

The Web (H5) SDK implements login and Adjust/GA4 event tracking. Top-up, account info, change password, and logout are handled by the SDK's floating button, which redirects to the Alogame portals — so there's no payment/IAP or push setup on web.

Integration checklist​

Complete these steps in order for each platform:

#StepAndroidiOSUnity
1Add the SDK and initializeInstallInstallInstall
2Implement login flowAuthenticationAuthenticationAuthentication
3Bind player role after loginGame RoleGame RoleGame Role
4Integrate in-app purchasesIAPStoreKitIAP
5Configure event trackingTrackingTrackingTracking
6Set up push notificationsPushPushPush
7Add account dashboardDashboardDashboardDashboard

Credentials​

Contact your Alogame Operation Manager to obtain:

CredentialUsed inNotes
game_idSDK init call (client)Identifies your game
secret_keyGame server onlyS2S webhook signature — never embed in client

The game_id is the only value your app passes to the SDK; everything else (social login credentials, feature flags, tracking) is configured by Alogame on the server and loaded at runtime. The secret_key is used exclusively by your game server to verify Alogame webhook callbacks.

What the SDK provides​

FeatureAndroidiOSUnityWeb (H5)
Guest login / Play Now✅✅✅✅
Alogame Account✅✅✅✅
Google login✅✅✅✅
Facebook login✅✅✅✅
Sign in with Apple—✅✅ (iOS)—
TikTok login✅✅✅—
Google Play Billing IAP✅—✅ (Android)—
Apple StoreKit IAP—✅✅ (iOS)—
Top-up / rechargevia SDKvia SDKvia SDKfloating button → portal
Adjust tracking✅✅✅✅
Firebase push (FCM)✅✅✅ (Android)—
APNs push—✅✅ (iOS)—
Account dashboard UI✅✅✅floating button → portal
-------