ActionCodeSettings interface Stay organized with collections Save and categorize content based on your preferences.
An interface that defines the required continue/state URL with optional Android and iOS bundle identifiers.
Signature:
exportinterfaceActionCodeSettingsProperties
| 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 orfirebaseapp.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, useActionCodeSettings.linkDomain to set a custom domain for mobile links. Learn more in theDynamic 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 orfirebaseapp.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 thecontinueUrl query parameter. - When the link is handled in the app directly, this is thecontinueUrl query parameter in the deep link of the Dynamic Link or Hosting link.
Signature:
url:string;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-06 UTC.