使用 FirebaseDynamicLinks with Flutter 生成短链接时出错
最近,当我将 flutter 应用程序和 firebase_dynamic_links 包更新到 4.0.7 时 我有一个生成短链接的函数,但现在该函数不再起作用并出现此错误: 错误 [firebase_dynamic_links/unknown] FDL 域丢失。使用 setDomainUriPrefix() 或 setDynamicLinkDomain() 设置, 我的代码是:
final shortUri = await FirebaseDynamicLinks.instance.buildShortLink(
DynamicLinkParameters(link: uri, uriPrefix: ''),
shortLinkType: ShortDynamicLinkType.unguessable);
return shortUri.shortUrl;
请帮助我并提前致谢
final shortUri = await FirebaseDynamicLinks.instance.buildShortLink(
DynamicLinkParameters(link: uri, uriPrefix: ''),
shortLinkType: ShortDynamicLinkType.unguessable);
return shortUri.shortUrl;
Recently when i update my flutter app and firebase_dynamic_links package to 4.0.7
I have a function to generate a short link, but now this function doesn't work any more and get this error :
Error [firebase_dynamic_links/unknown] FDL domain is missing. Set with setDomainUriPrefix() or setDynamicLinkDomain(),
my code is :
final shortUri = await FirebaseDynamicLinks.instance.buildShortLink(
DynamicLinkParameters(link: uri, uriPrefix: ''),
shortLinkType: ShortDynamicLinkType.unguessable);
return shortUri.shortUrl;
Please help me and thanks in advance
final shortUri = await FirebaseDynamicLinks.instance.buildShortLink(
DynamicLinkParameters(link: uri, uriPrefix: ''),
shortLinkType: ShortDynamicLinkType.unguessable);
return shortUri.shortUrl;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论