Receive Dynamic Links with Unity

To receive the Firebase Dynamic Links that you created, you must include the Dynamic Links SDK in your app and register a listener to handle the DynamicLinkReceived event.

The Unity SDK works for both Android and iOS, with some additional setup required for each platform.

Before you begin

Before you can use Firebase Dynamic Links, you need to:

  • Register your Unity project with your Firebase project.
  • Add the Firebase Unity SDK (specifically, FirebaseDynamicLinks.unitypackage) to your Unity project.

Find detailed instructions for these initial setup steps in Add Firebase to your Unity project.

Register to receive incoming Dynamic Links

To check for Dynamic Links, you need to register for the DynamicLinkReceived event.

void Start() {
  DynamicLinks.DynamicLinkReceived += OnDynamicLink;

// Display the dynamic link received by the application.
void OnDynamicLink(object sender, EventArgs args) {
  var dynamicLinkEventArgs = args as ReceivedDynamicLinkEventArgs;
  Debug.LogFormat("Received dynamic link {0}",

Оставить отзыв о...

Текущей странице
Нужна помощь? Обратитесь в службу поддержки.