adjust / adobe_air_sdk

This is the Adobe AIR SDK of
http://adjust.com
Other
24 stars 12 forks source link

install referrer ANE #54

Closed rewb0rn closed 4 years ago

rewb0rn commented 4 years ago

Hi,

when including the ANE com.adjust.installref, we are having a clash with another Adobe Native Extension that also contains the Google Install Referrer. When we include both com.adjust.installref and com.android.installreferrer by Distriqt (from here: https://github.com/distriqt/ANE-AndroidSupport), we see this error message:

dx tool failed:Error: Program type already present: com.android.installreferrer.BuildConfig

Can we just remove com.adjust.installref and everything would continue to work fine? Or is the file AdjustInstallRef-1.0.0.ane always required because it executes custom code for Adjust?

I checked the documentation but I only found this link that explains how to handle the situation with broadcast receivers, which is the deprecated way.

Thanks in advance

uerceg commented 4 years ago

Hi @rewb0rn,

In theory, that should be the case. Source of where API comes from should be irrelevant as long as it's there. You can also test this easily like this:

Let us know if worked for you.

Cheers

rewb0rn commented 4 years ago

Where should I see this log? I have traced the jsonResponse in AS3 which gives this result:


jsonResponse = {"app_token":"XXX","adid":"XXX","timestamp":"2020-08-13T13:45:03.497Z+0000","message":"Install tracked","ask_in":2000}
Tracker token = XXX
Tracker name = Organic
Campaign = null
Network = Organic
Creative = null
Adgroup = null
Click label = null

However I don't see a sdk_click log, neither in AS3 nor logcat

uerceg commented 4 years ago

Did you set SDK to sandbox mode and log level to verbose? You should be able to see native logs with adb logcat -s Adjust.

rewb0rn commented 4 years ago

Yes I set both, but apparently I used the filter in the Android Studio logcat wrong. With adb logcat -s Adjust the sdk_click and install referrer logs are showing up now.

This looks like it is working fine, thanks!

uerceg commented 4 years ago

Yay, good news. In case anything else might be needed in here, feel free to comment/reopen.