Closed AhmadIzaz closed 2 months ago
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.
}
})`
Also when I run my app it shows me these logs of referrer
👋 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 support@appsflyer.com. When submitting the ticket, please specify:
@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.
??
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 support@appsflyer.com and we will be more than happy to provide any additional assistance required.
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 :)
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.