Closed rnike closed 3 years ago
I can get data when I send a deferred deep link for applink from the test page. But when I click on a created ad, the deep link comes NULL even though I am directed to the application.
I publish the ad from the Facebook Ad management and add it to my Facebook stream. When I click on the ad, it goes to the app. But since the application comes with NULL, I cannot direct it to product details.
I can get data when I send a deferred deep connection on the test screen.
How can I solve this problem.
About
Using facebook deferred app link in react-native project was a bit painful, because it isn't included in react-native-fbsdk.
Simply warp the
fetchDeferredAppLink
function from native.iOS
fetchDeferredAppLink
from FBSDKAppLinkUtilityNSURL
toNSString
if app link is found and pass it to JS usingRCTPromiseResolveBlock
.null
if app link is not found.Android
fetchDeferredAppLinkData
from AppLinkDataappLinkData
is found, convert itsUri
toString
and pass it to JS usingcom.facebook.react.bridge.Promise
.null
ifappLinkData
is not found.Test Plan:
Check if
AppLink.fetchDeferredAppLink
is working as expectedExample code