react-native-branch-deep-linking-attribution icon indicating copy to clipboard operation
react-native-branch-deep-linking-attribution copied to clipboard

Cannot open app through Facebook Messenger on IOS

Open binhchili opened this issue 4 years ago • 5 comments

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: image

Info.plist file: image

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 ?

binhchili avatar Nov 11 '20 10:11 binhchili

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.

binhchili avatar Nov 12 '20 02:11 binhchili

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.

echo-branch avatar Nov 12 '20 04:11 echo-branch

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.

Reenagrg100 avatar Nov 22 '20 19:11 Reenagrg100

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?

evanlarkin10 avatar Dec 28 '21 01:12 evanlarkin10

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/)

TsheriSherpa avatar Sep 07 '22 11:09 TsheriSherpa