Skip to main content
Version: 1.6.0

Push Notifications

Push notifications allow receiving remote messages while the app is running or in background.

The SDK handles platform details internally.

Configuration is done via the Settings Inspector in Unity.

Configuration is applied automatically at build time for each platform.

Platform markers

The following markers are used to indicate platform availability of parameters and features:

  • (no marker) — Shared parameter or feature
  • 🍏 — iOS-specific parameter or feature
  • 🤖 — Android-specific parameter or feature
  • ⚠️ — Not implemented in the Unity plugin yet

Ask your release manager for the required parameters before configuring the SDK.

Configure ⚠️

FieldDescription
Push Notifications EnabledEnables/disables push notifications on the build

This setting must be enabled for any push logic to work on the platform.

Usage

Push notifications are delivered through SDK-level callbacks.

Receive Push Message

Subscribe to receive push messages:

private void OnPushMessageReceived(string message)
{

}

P101XP.GetInstance().MessageReceivedEvent += OnPushMessageReceived;

Push Payload Object ⚠️

Unity representation of a push message:

public class P101XPMessage
{
public string MessageId { get; }
public string MessageBody { get; }
public long MessageSentTime { get; }
}

Notes

  • On iOS, push support requires adding push capabilities in Xcode and enabling Push Notifications in Signing & Capabilities (this is the native requirement).
  • On Android, the Unity plugin must include Firebase setup (google-services.json) for push to function.
  • Push messages are delivered via the listener callback when received.