Replies: 2 comments 5 replies
-
It appears to not exist on firebase-android-sdk (please if you can find it in their reference documentation paste a link here - happy to be corrected). It does appear to exist on iOS https://firebase.google.com/docs/reference/ios/firebasedynamiclinks/api/reference/Classes/FIRDynamicLink#matchtype If you would like to post a PR that adds it to index.d.ts (marked as iOS only, assuming I am correct that it does not exist on android) and fetch it, I'd be happy to collaborate with you and get it published. Add a new enum with none / weak / default / unique string values to index.d.ts and add a new matchType property to the link object that references that enum type here - react-native-firebase/packages/dynamic-links/lib/index.d.ts Lines 399 to 424 in d4b2015 Two similar blocks, both would fetch the match type and set a new key/value in the returned object, where the key was as indicated in the index.d.ts addition and the value was one of the enumeration values possible per the index.d.ts addition The code doing the transformation from resolved link to JSON object for transmission as an event to the javascript is unfortunately really duplicated, but it is also just the same two lines over and over again, e.g.: ...and in the other implementation file: (plus a few other areas in the file) |
Beta Was this translation helpful? Give feedback.
-
matchType is not needed for Android b/c there's platform support for deferred deep link. They are always 100% confident about the trigger of a deeplink. On the other hand, iOS has no platform support on deferred deep link. There are third party solution (in this case Firebase Dynamic Link) trying to place a hack around it under the hood, and hence the matchType is needed on iOS. it tells the confidence of whether or not the deep link was actually clicked. Right now, the bug that I'm seeing is that if I open a dynamic link and the app is not installed, then it will take me to the appstore and then after the installation, it takes me to the right screen. This is great so far. However, the dynamic link is not consumed! The hope is that with the matchType, we can place some logic to help filter the low confidence "deep link" and mitigate this bug. |
Beta Was this translation helpful? Give feedback.
-
Match Type is critical for measuring performance of Dynamic Links and yet it absent from JS api.
Beta Was this translation helpful? Give feedback.
All reactions