当应用程序处于后台时,clevertap Deeplink通知将重定向到safari而不是移动应用程序 [英] clevertap Deeplink notification is redirecting to safari instead of mobile app when app is in background

查看:49
本文介绍了当应用程序处于后台时,clevertap Deeplink通知将重定向到safari而不是移动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当应用程序处于后台状态时,clevertap Deeplink通知将重定向到safari而不是移动应用程序,

有人可以帮我吗

解决方案

我相信您正在尝试了解为什么Deeplink首先在浏览器中打开,然后将您重定向到应用程序

如果深度链接以iOS设备上的HTTPS开头,则默认行为是在浏览器中打开该链接.如果您实施了通用链接,Safari会在顶部显示一个横幅,询问您是否想要在应用程序中打开它.

您可以在这里了解更多信息:

clevertap Deeplink notification is redirecting to safari instead of mobile app when app is in background ,

Can any one help on me on this

解决方案

I believe you are trying to understand why your Deeplink is opening in the browser first and then redirecting you to the Application

If a deep link starts with HTTPS on iOS devices, the default behavior is to open that link in the browser. If you have implemented a universal link, safari will show you a banner at the top asking if you want to open it in the app.

You can read about it more here:- https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app

If you would like to open the app directly from the push notification using an HTTPS link, you should not include the URL in the deep link input field. You can instead pass the HTTPS: deep link as a custom key-value pair, then In you app you can read the custom key-value pair and decide the redirection logic, or if you don't wanna pass URL, you can also pass an identifier which needs to be handled in your app.

Please check this image for more Information:

这篇关于当应用程序处于后台时,clevertap Deeplink通知将重定向到safari而不是移动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆