react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
Cannot open app through Facebook Messenger on IOS
I follow this guide https://help.branch.io/developers-hub/docs/react-native to set up everything and test successfully on Facebook. When I click a post on Facebook it automatically open my app. But this doesn't happen when I share my post on Messenger. This is my Branch settings:
Info.plist
file:
My code:
const handleClickShare = async () => {
try {
let branchUniversalObject = await branch.createBranchUniversalObject('canonicalIdentifier', {
locallyIndex: true,
title: 'Cool Content!',
contentDescription: 'Cool Content Description',
contentImageUrl: 'https://i.picsum.photos/id/866/200/300.jpg?hmac=rcadCENKh4rD6MAp6V_ma-AyWv641M4iiOpe1RyFHeI'
})
let linkProperties = {
feature: 'share',
channel: 'facebook'
}
let controlParams = {
$desktop_url: 'http://desktop-url.com/monster/45',//truyen deep link vao day !!!
$time: new Date().toISOString()
}
let { url } = await branchUniversalObject.generateShortUrl(linkProperties, controlParams);
console.log(url);
setDynamicLink(url);
} catch (e) {
console.log(e);
}
}
Can someone help me to solve this problem ?
EDIT I already test on Android and it worked perfectly on Facebook, Google Chrome and Messenger. But it still doesn't work on IOS Messenger. Waiting for a solution.
FB may still be blocking links out of FB messenger. Please take a look at the our existing docs on the issue.
https://blog.branch.io/how-to-deep-linking-from-facebook/ https://help.branch.io/developers-hub/docs/ios-universal-links#apps-that-work-sometimes
I'll follow up with our support team to see what they're currently seeing from other clients.
EDIT I already test on Android and it worked perfectly on Facebook, Google Chrome and Messenger. But it still doesn't work on IOS Messenger. Waiting for a solution.
Hey, I'm not able to get deep link params on android. Don't know why. Although it's working fine on iOS. Can you please let me know if I'm missing anything. For your reference: https://help.branch.io/developers-hub/docs/react-native I just followed these exact same steps.
I am running into this issue. Everything works as expected on android, but on iOS sharing and opening the link via fb messenger launches the app but with the following params: {"+clicked_branch_link": false, "+is_first_session": false}. I am not able to access any of the deep link parameters, has anyone found any work around for this?
to anyone running in this issue you can use app links meta tags for opening your app through FB messenger (https://developers.facebook.com/docs/applinks/metadata-reference/)