How to fix issue with SMS from custom landing page
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:
So, what is the correct way to integrate it? Is there any working example?