dynamic_links library
Dynamic Links: cloud.dynamicLinks (FFXCloudDynamicLinks), short
links on the project's link host, https://<host>/<code>, that open the
app on a route (specs/34).
import 'package:flutterflow_cloud/flutterflow_cloud.dart';
import 'package:flutterflow_cloud/dynamic_links.dart';
final links = FlutterFlowCloud.instance.dynamicLinks;
final url = await links.createLinkToLocation('/product?id=42');
package:flutterflow_cloud/flutterflow_cloud.dart doesn't export this
library. The module is off unless the build carries the project's link
host (FFX_LINK_DOMAIN) or the instance talks to an emulator; see
FFXDynamicLinks.
Classes
- FFXDynamicLink
- A resolved link: what an app needs to navigate and attribute, nothing about who made it.
- FFXDynamicLinks
-
Dynamic Links (specs/34): short links on the project's link host,
https://<host>/<code>, that open this app on a route. - FFXLinkCampaign
- Campaign attribution on a link: the five UTM dimensions, set when the link is made and never changed.
- FFXLinkNotFound
- A link on this app's host that the host doesn't know, or no longer serves; reported as a failed resolution. The router goes home.
- FFXLinkOpen
- What a URL handed to the app turned out to be (specs/34 ยง11).
- FFXLinkOpened
- A link on this app's host that resolved; its open was reported.
- A link on this app's host that couldn't be resolved: offline, or the host kept failing. Nothing is reported. The router goes home.
- FFXNotALink
- Not a Dynamic Link, or Dynamic Links is off in this build.
- FFXSchemeOpened
-
An "Open in app" URL on the app's own scheme (
<scheme>:///product).
Extensions
- FFXCloudDynamicLinks on FlutterFlowCloud
-
cloud.dynamicLinks. It is an extension in its own library,package:flutterflow_cloud/dynamic_links.dart, rather than a member of FlutterFlowCloud, so it never shadows the generateddynamicLinksgetter of an app with adynamicLinkmodel. Such an app, importing this library too, names the extension:FFXCloudDynamicLinks(cloud).dynamicLinks.
Exceptions / Errors
- FFXDynamicLinksNotConfiguredError
-
Thrown by
cloud.dynamicLinks(package:flutterflow_cloud/ dynamic_links.dart) when the build carries no link host: Dynamic Links is off for this app, and nothing was sent.