AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
284 stars 202 forks source link

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

Closed ViswaDB closed 1 day ago

ViswaDB commented 8 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 7 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 7 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 7 months ago

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

MassimoDjungle commented 7 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 7 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.

akhano26 commented 1 month ago

@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