iMessage | Slack - Firebase动态链接缩短URL不工作



Firebase shortenURL在除iMessage和Slack之外的每个应用程序中都按预期工作。

共享屏幕被Slack卡住了。handleUniversalLink解码返回404iMessage.

请注意,shortenURL的复制和粘贴工作正常。

let activityVC = UIActivityViewController(activityItems: [shortenURL], applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
self.present(activityVC, animated: true)

任何帮助都是非常感谢的。

解决方案是在shortenURL中包含一些前缀文本并将它们共享在一起。

let promoText = "You have been invited to this. "
let activityVC = UIActivityViewController(activityItems: [promoText + shortenURL.absoluteString], applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
self.present(activityVC, animated: true)

最新更新