Unity SDK
Preview · 0.1.0-beta.1 · Unity 2022.3 LTS / Unity 6 LTS · Android and iOS
Install with Unity Package Manager:
https://github.com/kemegames-studio/pushhub.git?path=/sdk/unity#sdk-adapters-v0.1.0-beta.1
Or download the Unity UPM archive.
PushHub.Configure("YOUR_APP_ID", "ph_pub_YOUR_KEY");
await PushHub.RequestPermissionAsync();
await PushHub.StartAsync();
await PushHub.IdentifyAsync("player-1842", new Dictionary<string,string> { ["tier"] = "gold" });
await PushHub.TrackAsync("level_completed", new Dictionary<string,string> { ["level"] = "20" });
The C# facade selects an Android JNI or iOS native bridge at build time. Secure storage, offline retry, FCM/APNs token lifecycle, consent, and signed receipts remain in the native core. Editor play mode uses a non-networking preview adapter. Inspect configuration under Window → PushHub → Diagnostics.
The SDK does not prompt during Configure, navigate automatically, or accept ph_live_ server keys. Forward allowed deep links through PushHub.DeepLinkOpened and validate them in the game.
Preview status means the source contract and Android bridge compile, but the advertised Unity editor/device build matrix remains a Phase 4E release gate.