ushu / branch_io

Client for branch.io public API
MIT License
16 stars 7 forks source link

Link auto clicking #5

Open dharamdip opened 5 years ago

dharamdip commented 5 years ago

I am facing very strange issue with $desktop_url. as I have created deep link with $desktop_url, and send that link via email. but link is auto calling on server without clicking on it.

here is my code

client = BranchIO::Client.new(ENV['BRANCH_KEY'], ENV['BRANCH_SECRET'])
    res = client.link(
        feature: 'confirmation_link',
        data: {
          token: token,
          "$desktop_url": "#{ENV['DOMAIN_URL']}/api/v1/users/confirmation.html?confirmation_token=#{token}"
        })
    res.url

If I removed $desktop_url then all things work like charm.

Thanks in advance.