AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
273 stars 196 forks source link

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

Open ViswaDB opened 4 months ago

ViswaDB commented 4 months ago

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.

github-actions[bot] commented 3 months ago

👋 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:

Shiggins95 commented 3 months ago

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 commented 3 months ago

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

MassimoDjungle commented 3 months ago

@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 commented 2 months ago

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