关于动态链接的行为 [英] About behavior of Dynamic Links

查看:114
本文介绍了关于动态链接的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode版本:9.3.1

Xcode version: 9.3.1

Firebase SDK版本:5.0.1

Firebase SDK version: 5.0.1

Firebase组件:动态链接

Firebase Component: Dynamic Links

组件版本:3.0.0

Component version: 3.0.0

我在项目中实现了动态链接.我有一个问题,我不知道这是真实的行为.你能帮我解决吗?

I implemented Dynamic links in project. I have a problem, I don't know the behavior that is true. Could you help me resolve it?

复制步骤:

  1. 从App Store安装App.
  2. 共享项目链接.
  3. 删除设备上的应用.
  4. 点击上方(2)的链接共享
  5. 移动到App Store并再次安装应用.
  6. 应用程序接收从动态链接共享的链接的内容.
  7. 删除设备上的应用.
  8. 打开App Store并重新安装应用程序,(不要通过 动态链接).
  9. 应用程序仍接收动态链接共享的链接的内容.
  1. Install App from App store.
  2. Share a link for project.
  3. Delete App on device.
  4. Tap an link share at above (2)
  5. Move to App store and install again app.
  6. App receiver the content of link shared from Dynamic links.
  7. Delete App on device.
  8. Open App store and install again app, (Move to App store not via dynamic links).
  9. App still receiver the content of link shared from Dynamic links.

功能

-(BOOL)应用程序:(UIApplication *)应用程序openURL:(NSURL *)URL选项:(NSDictionary *)选项

-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options

当我删除并再次安装应用程序时,总是返回共享链接.

it's alway return the link for share when i removed and install app again.

在第9步:应用程序仍接收链接共享的内容.",我认为这是错误的.

At step 9 : "App still receiver the content of link shared. " , In my opinion, i think that is wrong.

让我知道您的意见,如果不对,请帮助我解决此问题.

Let me know your opinion and If it's wrong , please help me resolve this.

推荐答案

我暂时解决了此问题,但是我不确定这是否是根核心. 我使用属性"mathType"进行检查.

I temporarily resolved this problem but I not sure this is root core. I used property "mathType" to check.

@property(nonatomic, assign, readonly) FIRDLMatchType matchType;

FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url];
 if (dynamicLink) {
       if (dynamicLink.url && dynamicLink.matchType == FIRDLMatchTypeUnique) {
             // to check App install when tap an link shared.
       } 
       if (dynamicLink.url && dynamicLink.matchType == FIRDLMatchTypeWeak) {
             // to check App install via App store (not tap an link shared).
       } 
}

这篇关于关于动态链接的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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