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

Does appsflyer flutter sdk supports the google play install referrer API ?? #330

Closed
AhmadIzaz opened this issue Jul 12, 2024 · 7 comments
Closed
Labels

Comments

@AhmadIzaz
Copy link

I see that there is a guide on how to install the Google Play install referrer here: Basic SDK Integration Guide.

I understand that this is an Android guide. My question is: Do I need to implement it in my flutter project through method channels for AppsFlyer to support the install referrer?

Is there any documentation available for Flutter? I read through the entire guide and couldn't find any helpful links on how to implement the install referrer for AppsFlyer so we can use that data.

P.S.: I know how to implement the install referrer through method channels or through Flutter pub dev, but I need to know how to send that data to AppsFlyer. Additionally, does the Flutter SDK for AppsFlyer handle this automatically, or am I missing something? I hope this makes sense.

@AhmadIzaz
Copy link
Author

When I download this github repo to make sure either this sdk have the install referrer handled or not. I can see that this sdk have implemented the instalreferrer:2.1 but there is no such code as this in this repo

`private lateinit var referrerClient: InstallReferrerClient

referrerClient = InstallReferrerClient.newBuilder(this).build()
referrerClient.startConnection(object : InstallReferrerStateListener {

override fun onInstallReferrerSetupFinished(responseCode: Int) {
    when (responseCode) {
        InstallReferrerResponse.OK -> {
            // Connection established.
        }
        InstallReferrerResponse.FEATURE_NOT_SUPPORTED -> {
            // API not available on the current Play Store app.
        }
        InstallReferrerResponse.SERVICE_UNAVAILABLE -> {
            // Connection couldn't be established.
        }
    }
}

override fun onInstallReferrerServiceDisconnected() {
    // Try to restart the connection on the next request to
    // Google Play by calling the startConnection() method.
}

})`

@pazlavi pazlavi added the question Further information is requested label Jul 12, 2024
@AhmadIzaz
Copy link
Author

Also when I run my app it shows me these logs of referrer
image

@pazlavi pazlavi added support and removed question Further information is requested labels Jul 14, 2024
Copy link

👋 Hi @AhmadIzaz 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.

@AhmadIzaz
Copy link
Author

AhmadIzaz commented Jul 14, 2024

@af-fess @pazlavi its just a question, I don't need any support for now. My question is simple either this sdk is handling the google play install referrer on its own or do I have to add some codebase for install_referrer to work ? Thats it. I don't want to be in a line of hundreds in the support. it will be just a waste of time.

@AhmadIzaz
Copy link
Author

??

@ge-af
Copy link

ge-af commented Jul 16, 2024

Hi @AhmadIzaz

Once the Google Play Install Referrer dependency is available (and it's being added by default in the Flutter plugin) we will try to collect the referrer data internally inside the native Android SDK. There is no need to add any extra code for it on your side.

From the debug logs you shared above it does seem like the Install Referrer logic is enabled and everything is working properly.

If you have any further comments or questions, please make sure to submit a ticket to our Support team at [email protected] and we will be more than happy to provide any additional assistance required.

@ge-af ge-af closed this as completed Jul 16, 2024
@AhmadIzaz
Copy link
Author

Thank you so much @ge-af for the response. Much appreciated to confirm this thing. is it possible to add this in documentation as well for future references. Thanks again :)

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

3 participants