How to fix issue with SMS from custom landing page

Asked on August 7, 2017 in Technical.

I’m trying to implement Desktop SMS integrating Web SDK to the custom landing page for the test application.

Dashboard shows that SDK is integrated, the test link from dashboard successfully leads to the custom landing page on desktop.

But when I try to call sendSMS function it makes a POST to https://bnc.lt/c/[LINK_HASH]?__branch_flow_id=[SOME_ID] passing the following form data: sdk, phone, branch_key, ignoring the data I’ve specified inthe fnuction call; and getting HTTP 400 with Branch-hosted SMS Landing Page html back.

If I call sendSMS  from the page different to the one specified in Branch dashboard it works a little bit different (requests some url passing all data I provide, calls ‘click’ on the received url, etc) but end up in the same state – failed POST returning Branch-hosted SMS Landing Page html back.

I’ve tried to send SMS from the https://cdn.branch.io/example.html  but got the same picture:

How to fix issue with SMS from custom landing page

So, what is the correct way to integrate it? Is there any working example?

- — Developer
1 Answer(s)
Answered on August 7, 2017.

Hi there!

I’m not quite sure what’s going on here — I’ve checked the https://cdn.branch.io/example.html page and not seeing any errors.

Could you send a ticket to our Integrations team so we can help you debug?

Branch — Developer