Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Invite link is locating go.onelink.me #536

Open
ViswaDB opened this issue Mar 10, 2024 · 5 comments
Open

Generate Invite link is locating go.onelink.me #536

ViswaDB opened this issue Mar 10, 2024 · 5 comments
Labels

Comments

@ViswaDB
Copy link

ViswaDB commented Mar 10, 2024

Report

Plugin Version

6.12.2

On what Platform are you having the issue?

android
ios works fine

What did you do?

I tried to generate a deep link. Here's the code
appsFlyer.setAppInviteOneLinkID('8kih');

appsFlyer.generateInviteLink(
  {
    channel: 'gmail',
    campaign: 'SMS Campaign',
    customerID: '123ref123',
    userParams: {
      referralId: referralId,
    },
  },
  link => {
    console.log('generate link', link);
  },
  err => {
    console.log('generate link error', err);
  },
);

What did you expect to happen?

I am expecting the link to be in this format. https://myappname.onelink.me

What happened instead?

But i got https://go.onelink.me.

@ViswaDB ViswaDB changed the title Generate deep link is locating go.onelink.me Generate Invite link is locating go.onelink.me Mar 10, 2024
Copy link

github-actions bot commented Apr 2, 2024

👋 Hi @ViswaDB and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com.
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@Shiggins95
Copy link

Just commenting here as I had the same issue and contacted support for assistance. Not sure if this will fix the issue for everyone, but it did for me.

You need to add the line for setting the template ID before you initialise the SDK. The documentation isn't too clear on this currently, but that was the solution provided by support for me and it worked.

Once the template ID is set, and then you initialise the SDK, you can then call the generateInviteLink anywhere in your app and it will generate using the correct subdomain.

@amit-kremer93
Copy link
Contributor

@ViswaDB Please try what @Shiggins95 suggested and let us know if it helped

@MassimoDjungle
Copy link

@ViswaDB Please try what @Shiggins95 suggested and let us know if it helped

I tried it, but I obtain links to go.onelink.me

@ViswaDB
Copy link
Author

ViswaDB commented Apr 25, 2024

@ViswaDB Please try what @Shiggins95 suggested and let us know if it helped

Yes after setAppInviteOneLinkID in app js, it's returning correct link in generateInviteLink. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants