关于动态链接的行为 [英] About behavior of Dynamic Links
问题描述
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?
复制步骤:
- 从App Store安装App.
- 共享项目链接.
- 删除设备上的应用.
- 点击上方(2)的链接共享
- 移动到App Store并再次安装应用.
- 应用程序接收从动态链接共享的链接的内容.
- 删除设备上的应用.
- 打开App Store并重新安装应用程序,(不要通过 动态链接).
- 应用程序仍接收动态链接共享的链接的内容.
- Install App from App store.
- Share a link for project.
- Delete App on device.
- Tap an link share at above (2)
- Move to App store and install again app.
- App receiver the content of link shared from Dynamic links.
- Delete App on device.
- Open App store and install again app, (Move to App store not via dynamic links).
- 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屋!