* Add linkDomain field to ActionCodeSettings (#8428) * Add linkDomain field to ActionCodeSettings * Update API reports * Update error message for ERROR_INVALID_HOSTING_LINK_DOMAIN to include that default hosting domains cannot be used. * Use constants for test values --------- Co-authored-by: NhienLam <[email protected]> * FDL Deprecation & Hosting link Integration Test (#8603) * Implement Integration test for passwordless email sign-in via firebase-hosting links. * Add license to new test file created' did not match any files * Remove unwanted _ * Add support for setting custom hosting link domain in test app (#8614) * Add afterEach method and apply formatting to the hosting links integration test (#8615) * Mark ActionCodeSettings.dynamicLinkDomain as deprecated * Add changeset * Update API reports * Address review comments * Fix changeset * Update refdocs and address review comments * Update deprecated comment * Add FDL deprecation FAQ link * Fix linkDomain link in refdocs --------- Co-authored-by: NhienLam <[email protected]> Co-authored-by: mansisampat <[email protected]>
4.1 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
ActionCodeSettings interface
An interface that defines the required continue/state URL with optional Android and iOS bundle identifiers.
Signature:
export interface ActionCodeSettings
Properties
| Property | Type | Description |
|---|---|---|
| android | { installApp?: boolean; minimumVersion?: string; packageName: string; } | Sets the Android package name. |
| dynamicLinkDomain | string | When multiple custom dynamic link domains are defined for a project, specify which one to use when the link is to be opened via a specified mobile app (for example, example.page.link). |
| handleCodeInApp | boolean | When set to true, the action code link will be be sent as a Universal Link or Android App Link and will be opened by the app if installed. |
| iOS | { bundleId: string; } | Sets the iOS bundle ID. |
| linkDomain | string | The optional custom Firebase Hosting domain to use when the link is to be opened via a specified mobile app. The domain must be configured in Firebase Hosting and owned by the project. This cannot be a default Hosting domain (web.app or firebaseapp.com). |
| url | string | Sets the link continue/state URL. |
ActionCodeSettings.android
Sets the Android package name.
This will try to open the link in an Android app if it is installed.
Signature:
android?: {
installApp?: boolean;
minimumVersion?: string;
packageName: string;
};
ActionCodeSettings.dynamicLinkDomain
Warning: This API is now obsolete.
Firebase Dynamic Links is deprecated and will be shut down as early as August 2025. Instead, use ActionCodeSettings.linkDomain to set a custom domain for mobile links. Learn more in the Dynamic Links deprecation FAQ.
When multiple custom dynamic link domains are defined for a project, specify which one to use when the link is to be opened via a specified mobile app (for example, example.page.link).
Signature:
dynamicLinkDomain?: string;
ActionCodeSettings.handleCodeInApp
When set to true, the action code link will be be sent as a Universal Link or Android App Link and will be opened by the app if installed.
In the false case, the code will be sent to the web widget first and then on continue will redirect to the app if installed.
Signature:
handleCodeInApp?: boolean;
ActionCodeSettings.iOS
Sets the iOS bundle ID.
This will try to open the link in an iOS app if it is installed.
Signature:
iOS?: {
bundleId: string;
};
ActionCodeSettings.linkDomain
The optional custom Firebase Hosting domain to use when the link is to be opened via a specified mobile app. The domain must be configured in Firebase Hosting and owned by the project. This cannot be a default Hosting domain (web.app or firebaseapp.com).
Signature:
linkDomain?: string;
ActionCodeSettings.url
Sets the link continue/state URL.
This has different meanings in different contexts: - When the link is handled in the web action widgets, this is the deep link in the continueUrl query parameter. - When the link is handled in the app directly, this is the continueUrl query parameter in the deep link of the Dynamic Link or Hosting link.
Signature:
url: string;