You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/firebase_dynamic_links/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,9 +81,9 @@ You can receive a Dynamic Link containing a deep link that takes the user to spe
81
81
82
82
1. In the [Firebase Console](https://console.firebase.google.com), open the Dynamic Links section.
83
83
- Accept the terms of service if you are prompted to do so.
84
-
- Take note of your project's Dynamic Links URL prefix, which is displayed at the top of the Dynamic Links page. You need your project's Dynamic Links URL prefix to programmatically create Dynamic Links. A Dynamic Links URL prefix looks like `https://YOUR_SUBDOMAIN.page.link`.
84
+
- Take note of your project's Dynamic Links URL prefix, which is displayed at the top of the Dynamic Links page. You need your project's Dynamic Links URL prefix to programmatically create Dynamic Links. Unless you are using a custom domain, a Dynamic Links URL prefix looks like `https://YOUR_SUBDOMAIN.page.link`.
85
85
86
-
Receiving dynamic links on *iOS* requires a couple more steps than *Android*. If you only want to receive dynamic links on *Android*, skip to step 4. You can also follow a video on the next two steps [here.](https://youtu.be/sFPo296OQqk?t=2m40s)
86
+
Receiving dynamic links on *iOS* requires a couple more steps than *Android*. If you only want to receive dynamic links on *Android*, skip to step 5. You can also follow a video on the next two steps [here.](https://youtu.be/KLBjAg6HvG0?t=60)
87
87
88
88
2. In the **Info** tab of your *iOS* app's Xcode project:
89
89
- Create a new **URL Type** to be used for Dynamic Links.
@@ -92,10 +92,23 @@ Receiving dynamic links on *iOS* requires a couple more steps than *Android*. If
92
92
3. In the **Capabilities** tab of your app's Xcode project, enable **Associated Domains** and add the following to the **Associated Domains** list:
93
93
94
94
```
95
-
applinks:YOUR_SUBDOMAIN.page.link
95
+
applinks:YOUR_URL_PREFIX
96
96
```
97
97
98
-
4. To receive a dynamic link, configure listeners for link callbacks when the application is active or in background calling `onLink` and call the `getInitialLink()` method from `FirebaseDynamicLinks` which gets the link that opened the app (or null if it was not opened via a dynamic link).
98
+
Remember not to include `https://` or any slashes or paths in your prefix
99
+
100
+
4.**If you are using a custom domain** create an key in your `Info.plist` file called `FirebaseDynamicLinksCustomDomains` and set it to your app's Dynamic Link URL prefixes. For example:
101
+
102
+
```xml
103
+
<key>FirebaseDynamicLinksCustomDomains</key>
104
+
<array>
105
+
<string>https://example.com/promos</string>
106
+
<string>https://example.com/links/share</string>
107
+
</array>
108
+
```
109
+
110
+
5. To receive a dynamic link, call the `getInitialLink()` method from `FirebaseDynamicLinks` which gets the link that opened the app (or null if it was not opened via a dynamic link)
111
+
and configure listeners for link callbacks when the application is active or in background calling `onLink`.
0 commit comments