Skip to content

Firebase Integration

Utilities to subscribe to push notification services (Firebase) and register the device token in Bytro's backend ("notypo").

This package utilizes Firebase Cloud Messaging (FCM) and may require some updates through Unity's editor post-processing. For reference, see "iOSNotificationPostProcessor.cs."

Installation

To install Firebase, used by this package, please refer to its documentation: Firebase Unity Setup

Usage

This package provides two approaches to initialize push notifications; only one is required:

  1. Component-Based Approach Create the PushNotificationInitComponent during initialization and add the PushNotificationModule to the persistent world.

  2. State Machine-Based Approach Add the SendPushTokenRequestState to your app loading FSM to define the step where push notification registration will be triggered.

Choose the method that best aligns with your game’s architecture.