问题
Xcode version: 9.3.1
Firebase SDK version: 5.0.1
Firebase Component: Dynamic Links
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?
Steps to reproduce:
- 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.
The function
-(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.
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.
回答1:
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).
}
}
来源:https://stackoverflow.com/questions/51149078/about-behavior-of-dynamic-links