Push notifications for Android, iOS, and Windows (UWP) applications built with Unity.
Pushwoosh Unity SDK Documentation
- Push Notifications - Cross-platform push notifications with rich media support
- Tags & Segmentation - User targeting and segmentation
- In-App Messages - Triggered in-app messaging
- Analytics - Delivery and conversion tracking
- Setup Wizard - Guided configuration in Unity Editor
- Modular Architecture - Install only the platforms you need
In Unity: Window > Package Manager > + > Add package from git URL
Add the core package first, then the platform packages you need:
https://github.com/Pushwoosh/pushwoosh-unity.git?path=com.pushwoosh.unity.core
https://github.com/Pushwoosh/pushwoosh-unity.git?path=com.pushwoosh.unity.android
https://github.com/Pushwoosh/pushwoosh-unity.git?path=com.pushwoosh.unity.ios
https://github.com/Pushwoosh/pushwoosh-unity.git?path=com.pushwoosh.unity.windows
To pin a specific version, append #X.Y.Z:
https://github.com/Pushwoosh/pushwoosh-unity.git?path=com.pushwoosh.unity.core#6.2.8
Add to your Packages/manifest.json:
{
"dependencies": {
"com.pushwoosh.unity.core": "6.2.8",
"com.pushwoosh.unity.android": "6.2.8",
"com.pushwoosh.unity.ios": "6.2.8"
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org",
"scopes": ["com.pushwoosh"]
}
]
}Download Pushwoosh.unitypackage from Releases and import via Assets > Import Package > Custom Package.
using UnityEngine;
public class PushwooshExample : MonoBehaviour
{
void Start()
{
Pushwoosh.ApplicationCode = "XXXXX-XXXXX";
Pushwoosh.Instance.OnRegisteredForPushNotifications += (token) => {
Debug.Log("Push token: " + token);
};
Pushwoosh.Instance.OnPushNotificationsReceived += (payload) => {
Debug.Log("Push received: " + payload);
};
Pushwoosh.Instance.RegisterForPushNotifications();
}
}| Package | Description |
|---|---|
com.pushwoosh.unity.core |
Cross-platform API (required) |
com.pushwoosh.unity.android |
Android platform support (optional) |
com.pushwoosh.unity.ios |
iOS platform support (optional) |
com.pushwoosh.unity.windows |
Windows UWP/WSA support (optional) |
- Unity 2021.3+
- Android: External Dependency Manager (EDM4U) for native dependency resolution
- iOS: CocoaPods (auto-configured by the SDK)
- Windows: No additional dependencies
Pushwoosh Unity SDK is released under the MIT license. See LICENSE for details.
