gpt4 book ai didi

ios - 单击动态链接时深层链接不包含有效的必需参数

转载 作者:行者123 更新时间:2023-12-01 23:19:02 30 4
gpt4 key购买 nike

我已将动态链接设置为文档,但单击链接时它显示:

Deep Link does not contain valid required params. URL params: {
"_cpb" = 1;
"_cpt" = cpit;
"_fpb" = "CJsFEPcCGgVlbi1VUw==";
"_iumchkactval" = 1;
"_iumenbl" = 1;
"_osl" = "https://ttnfleetsolutions.page.link/azrN2YkJQncowdQ78";
"_plt" = 3698;
"_uit" = 1651;
apn = "com.ttnfleetsolutions.ttnfleet.debug";
cid = 4103105643708739955;
ibi = "com.ttnfleetsolutions.ttnfleetCustomer";
link = "https://www.ttnfleetsolutions.com/";

}

点击动态链接时应用程序打开,但它不调用任何函数并显示错误如何知道链接是否被点击?

我的 didfinishlunchingwithoption 方法:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool{
IQKeyboardManager.shared.enable = true
FirebaseApp.configure() UIBarButtonItem.appearance().setTitleTextAttributes([NSAttributedString.Key.foregroundColor: UIColor.clear], for: .normal)
UIBarButtonItem.appearance().setTitleTextAttributes([NSAttributedString.Key.foregroundColor: UIColor.clear], for: UIControl.State.highlighted)
GMSServices.provideAPIKey(GOOGLE_API_KEY)
GMSPlacesClient.provideAPIKey(GOOGLE_API_KEY)
return true

}和文档中的函数:

@available(iOS 9.0, *)
func application(_ app: UIApplication, open url: URL, options:
[UIApplication.OpenURLOptionsKey : Any]) -> Bool {
return application(app, open: url,
sourceApplication:
options[UIApplication.OpenURLOptionsKey.sourceApplication] as?
String,
annotation: "")
}


func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) {
print("DynamicLink\(dynamicLink)")

return true
}
return false
}

extension AppDelegate {
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([Any]?) -> Void) ->
Bool {
guard
userActivity.activityType == NSUserActivityTypeBrowsingWeb,
let webpageURL = userActivity.webpageURL else {
return false
}
return
DynamicLinks.dynamicLinks().handleUniversalLink(webpageURL) {
dynamiclink, error in
guard let url = dynamiclink!.url else { return }


print("url:", url)
}
}
}

最佳答案

如果您使用长版本的深层链接打开应用程序,则应确保您的 link 值采用百分比编码,这样您的 &,?,=内部链接内的符号由 firebase 进行编码和正确处理。

关于ios - 单击动态链接时深层链接不包含有效的必需参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54294267/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com