I have an application already in Google Play Console. I just added Appsflyer SDK to my application by using this official guide and integrated it by using this official guide.
I just added those lines to my Application
class:
AppsFlyerLib.getInstance().init("MY DEV KEY", null, this)
AppsFlyerLib.getInstance().start(this, "MY DEV KEY", object : AppsFlyerRequestListener {
override fun onSuccess() {
//Log.d("APPSFLYER", "Launch sent successfully")
}
override fun onError(errorCode: Int, errorDesc: String) {
/*
Log.d("APPSFLYER", "Launch failed to be sent:\n" +
"Error code: " + errorCode + "\n"
+ "Error description: " + errorDesc)
*/
}
})
Also added those lines to Manifest:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.gms.permission.AD_ID"
tools:node="remove"/>
...
<application
tools:replace="android:fullBackupContent"
...
</application>
Lastly to gradle:
//AppsFlyer
implementation "com.appsflyer:af-android-sdk:6.12.2"
My Target SDK is 34.
It works perfectly. I see that organic data comes to Appsflyer dashboard.
But when I try to submit my application to Google Play Console, I see that error:
I already set up the Advertising ID section in Play Console because of my Firebase Crashlytics implementation:
As you see, in this section, it says Your manifest file includes the com.google.android.gms.permission.AD_ID permission. This means your app declares the use of advertising ID. Answer 'yes' or remove this permission from your manifest.
but on first picture, it says no
.
What am I missing? What is the solution for this ?
Ideally, we recommend updating the SDK to the latest version.
Our latest SDK version (v6.12.4) you can find here.
You declare that you are collecting Advertising Identifier in the screenshot.
It says:
If you are revoking the permission, it means that you don't want to collect GAID, which contradicts what you've declared.
For a quick sanity test, try aligning the privacy declaration with the permissions in the Manifest. Then, check to see if the error has been resolved.