Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Untuk menerima Firebase Dynamic Links yang Anda buat, Anda harus menyertakan Dynamic Links SDK pada aplikasi dan mendaftarkan pemroses untuk menangani peristiwa DynamicLinkReceived.
Unity SDK berfungsi untuk Android dan iOS dengan beberapa penyiapan tambahan di masing-masing platform.
Mendaftarkan project Unity Anda dan mengonfigurasikannya agar dapat menggunakan Firebase.
Jika project Unity Anda telah menggunakan Firebase, berarti project tersebut telah terdaftar dan dikonfigurasi untuk Firebase.
Jika belum memiliki project Unity, Anda dapat mendownload aplikasi contoh.
Tambahkan FirebaseUnity SDK (khususnya, FirebaseDynamicLinks.unitypackage) ke
project Unity Anda.
Perlu diperhatikan bahwa penambahan Firebase ke project Unity Anda memerlukan tindakan baik di
Firebase console maupun di project Unity yang terbuka
(misalnya, Anda mendownload file konfigurasi Firebase dari konsol, lalu memindahkannya
ke project Unity).
Mendaftar untuk menerima Dynamic Links yang masuk
Untuk memeriksa Dynamic Links, Anda harus mendaftar ke peristiwa
DynamicLinkReceived.
voidStart(){DynamicLinks.DynamicLinkReceived+=OnDynamicLink;}// Display the dynamic link received by the application.voidOnDynamicLink(objectsender,EventArgsargs){vardynamicLinkEventArgs=argsasReceivedDynamicLinkEventArgs;Debug.LogFormat("Received dynamic link {0}",dynamicLinkEventArgs.ReceivedDynamicLink.Url.OriginalString);}
[null,null,["Terakhir diperbarui pada 2025-08-14 UTC."],[],[],null,["\u003cbr /\u003e\n\n| **Note:** Firebase Dynamic Links is *deprecated* and should not be used in new projects. The service will be shutting down soon. Follow the [migration guide](/support/dynamic-links-faq#how_should_i_migrate_from_the_service) and see the [Dynamic Links Deprecation FAQ](/support/dynamic-links-faq) for more information.\n\nTo receive the Firebase Dynamic Links that [you created](/docs/dynamic-links/create-links),\nyou must include the Dynamic Links SDK in your app and register a listener to handle the\n[`DynamicLinkReceived`](/docs/reference/unity/class/firebase/dynamic-links/dynamic-links#dynamiclinkreceived)\nevent.\n\nThe Unity SDK works for both Android and iOS, with some additional setup required\nfor each platform.\n\nBefore you begin\n\nBefore you can use\n[Firebase Dynamic Links](/docs/reference/unity/namespace/firebase/dynamic-links),\nyou need to:\n\n- Register your Unity project and configure it to use Firebase.\n\n - If your Unity project already uses Firebase, then it's already\n registered and configured for Firebase.\n\n - If you don't have a Unity project, you can download a\n [sample app](//github.com/google/mechahamster).\n\n- Add the [Firebase Unity SDK](/download/unity) (specifically, `FirebaseDynamicLinks.unitypackage`) to\n your Unity project.\n\n| **Find detailed instructions for these initial\n| setup tasks in\n| [Add Firebase to your Unity project](/docs/unity/setup#prerequisites).**\n\nNote that adding Firebase to your Unity project involves tasks both in the\n[Firebase console](//console.firebase.google.com/) and in your open Unity project\n(for example, you download Firebase config files from the console, then move\nthem into your Unity project).\n\nRegister to receive incoming Dynamic Links\n\nTo check for Dynamic Links, you need to register for the\n[`DynamicLinkReceived`](/docs/reference/unity/class/firebase/dynamic-links/dynamic-links#dynamiclinkreceived)\nevent. \n\n```c#\nvoid Start() {\n DynamicLinks.DynamicLinkReceived += OnDynamicLink;\n}\n\n// Display the dynamic link received by the application.\nvoid OnDynamicLink(object sender, EventArgs args) {\n var dynamicLinkEventArgs = args as ReceivedDynamicLinkEventArgs;\n Debug.LogFormat(\"Received dynamic link {0}\",\n dynamicLinkEventArgs.ReceivedDynamicLink.Url.OriginalString);\n}\n```"]]