Skip to content

Pushwoosh/pushwoosh-unity

Repository files navigation

Pushwoosh Unity SDK

GitHub release Unity Platforms License

Push notifications for Android, iOS, and Windows (UWP) applications built with Unity.

Table of Contents

Documentation

Pushwoosh Unity SDK Documentation

Features

  • 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

Installation

UPM via Git URL (recommended)

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

UPM via npm

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"]
    }
  ]
}

.unitypackage

Download Pushwoosh.unitypackage from Releases and import via Assets > Import Package > Custom Package.

Quick Start

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();
    }
}

Packages

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)

Requirements

Support

License

Pushwoosh Unity SDK is released under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors