appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

Generate Invite link is locating go.onelink.me

Open ViswaDB opened this issue 1 year ago • 6 comments

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 avatar Mar 10 '24 07:03 ViswaDB

👋 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 [email protected]. When submitting the ticket, please specify:

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

github-actions[bot] avatar Apr 02 '24 07:04 github-actions[bot]

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.

Shiggins95 avatar Apr 04 '24 11:04 Shiggins95

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

amit-kremer93 avatar Apr 04 '24 13:04 amit-kremer93

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

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

MassimoDjungle avatar Apr 17 '24 09:04 MassimoDjungle

@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.

ViswaDB avatar Apr 25 '24 14:04 ViswaDB

@ViswaDB my link is generated with the correct domain name, but it is not navigating to play store or opening the installed app but my oneLink with the same domain doing both. what could be the reason

akhano26 avatar Sep 27 '24 11:09 akhano26