{"action":"created","issue":{"url":"https://api.github.com/repos/adjust/android_sdk/issues/329","repository_url":"https://api.github.com/repos/adjust/android_sdk","labels_url":"https://api.github.com/repos/adjust/android_sdk/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/adjust/android_sdk/issues/329/comments","events_url":"https://api.github.com/repos/adjust/android_sdk/issues/329/events","html_url":"https://github.com/adjust/android_sdk/issues/329","id":313014490,"number":329,"title":"Getting attribution as Organic though default tracker is set","user":{"login":"dasaanand","id":582948,"avatar_url":"https://avatars2.githubusercontent.com/u/582948?v=4","gravatar_id":"","url":"https://api.github.com/users/dasaanand","html_url":"https://github.com/dasaanand","followers_url":"https://api.github.com/users/dasaanand/followers","following_url":"https://api.github.com/users/dasaanand/following{/other_user}","gists_url":"https://api.github.com/users/dasaanand/gists{/gist_id}","starred_url":"https://api.github.com/users/dasaanand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasaanand/subscriptions","organizations_url":"https://api.github.com/users/dasaanand/orgs","repos_url":"https://api.github.com/users/dasaanand/repos","events_url":"https://api.github.com/users/dasaanand/events{/privacy}","received_events_url":"https://api.github.com/users/dasaanand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-04-10T17:13:55Z","updated_at":"2018-04-11T06:11:40Z","closed_at":null,"author_association":"NONE","body":"Even after setting default tracker, I am still receiving as Organic tracker in the callback. \r\nCode: \r\n....\r\nadjustConfig.setAttributionChangedDelegate(HandleAttributionChange);\r\nadjustConfig.setDefaultTracker (\"abc123\");\r\nAdjust.start(adjustConfig);\r\nAdjust.setEnabled(true);\r\n\r\nOutput:\r\n04-10 22:33:00.225 24657 25590 V Adjust  : Response: {\"app_token\":\"xxxxx\",\"adid\":\"yyyy\",\"timestamp\":\"2018-04-10T17:03:00.727Z+0000\",\"message\":\"Install tracked\",\"attribution\":{\"tracker_token\":\"zzzz\",\"tracker_name\":\"Organic\",\"network\":\"Organic\"},\"ask_in\":2000}\r\n\r\n1. What's the lest version of Adjust where default tracker is supported?\r\n2. Any issues in the above code where it can go wrong?\r\n3. Any other steps to debug the issue?\r\n\r\nThanks,\r\n-dasa"},"comment":{"url":"https://api.github.com/repos/adjust/android_sdk/issues/comments/380338776","html_url":"https://github.com/adjust/android_sdk/issues/329#issuecomment-380338776","issue_url":"https://api.github.com/repos/adjust/android_sdk/issues/329","id":380338776,"user":{"login":"uerceg","id":1741635,"avatar_url":"https://avatars0.githubusercontent.com/u/1741635?v=4","gravatar_id":"","url":"https://api.github.com/users/uerceg","html_url":"https://github.com/uerceg","followers_url":"https://api.github.com/users/uerceg/followers","following_url":"https://api.github.com/users/uerceg/following{/other_user}","gists_url":"https://api.github.com/users/uerceg/gists{/gist_id}","starred_url":"https://api.github.com/users/uerceg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uerceg/subscriptions","organizations_url":"https://api.github.com/users/uerceg/orgs","repos_url":"https://api.github.com/users/uerceg/repos","events_url":"https://api.github.com/users/uerceg/events{/privacy}","received_events_url":"https://api.github.com/users/uerceg/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T06:11:40Z","updated_at":"2018-04-11T06:11:40Z","author_association":"CONTRIBUTOR","body":"In theory, there is nothing you need to look for. This feature should work w/o any issues with Android platform in Unity.\r\n\r\nNow I took a better look at your logs you have provided. Something is wrong in there, since there is no `default_tracker` being sent with install session package, that's why your install from that test run is being attributed to organic tracker. I just did the test with exact same SDK version like from your logs above (Unity SDK v4.11.4) and here's how it looks like for me (I just took logs with `Adjust` tag, not the Unity ones):\r\n\r\n```\r\n04-11 08:05:01.393 22691 22712 W Adjust  : SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!\r\n04-11 08:05:01.442 22691 22753 D Adjust  : Attribution file not found\r\n04-11 08:05:01.444 22691 22753 D Adjust  : Activity state file not found\r\n04-11 08:05:01.445 22691 22753 D Adjust  : Session Callback parameters file not found\r\n04-11 08:05:01.446 22691 22753 D Adjust  : Session Partner parameters file not found\r\n04-11 08:05:01.446 22691 22753 D Adjust  : adjust_config.properties file not found in this app\r\n04-11 08:05:01.505 22691 22753 I Adjust  : Google Play Services Advertising ID read correctly at start time\r\n04-11 08:05:01.505 22691 22753 I Adjust  : Default tracker: '5bo1dc'\r\n04-11 08:05:01.507 22691 22753 V Adjust  : Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds\r\n04-11 08:05:01.507 22691 22753 I Adjust  : Send in background configured\r\n04-11 08:05:01.517 22691 22759 D Adjust  : Package queue file not found\r\n04-11 08:05:01.543 22691 22753 D Adjust  : Wrote Session Callback parameters: {dummy_foo=dummy_bar}\r\n04-11 08:05:01.546 22691 22753 D Adjust  : Wrote Session Callback parameters: {dummy_foo=dummy_bar, dummy_key=dummy_value}\r\n04-11 08:05:01.547 22691 22753 D Adjust  : Wrote Session Partner parameters: {dummy_foo=dummy_bar}\r\n04-11 08:05:01.553 22691 22753 D Adjust  : Wrote Session Partner parameters: {dummy_foo=dummy_bar, dummy_key=dummy_value}\r\n04-11 08:05:01.554 22691 22753 D Adjust  : Key dummy_foo will be removed\r\n04-11 08:05:01.556 22691 22753 D Adjust  : Wrote Session Callback parameters: {dummy_key=dummy_value}\r\n04-11 08:05:01.556 22691 22753 D Adjust  : Key dummy_key will be removed\r\n04-11 08:05:01.558 22691 22753 D Adjust  : Wrote Session Partner parameters: {dummy_foo=dummy_bar}\r\n04-11 08:05:01.558 22691 22753 V Adjust  : Background timer canceled\r\n04-11 08:05:01.559 22691 22753 V Adjust  : Foreground timer starting\r\n04-11 08:05:01.560 22691 22753 V Adjust  : Subsession start\r\n04-11 08:05:01.582 22691 22759 D Adjust  : Added package 1 (session)\r\n04-11 08:05:01.598 22691 22753 D Adjust  : Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:3ca3fae1-b841-40fa-a811-2cb74b22c4ed\r\n04-11 08:05:01.599 22691 22753 V Adjust  : Background timer canceled\r\n04-11 08:05:01.599 22691 22753 V Adjust  : Foreground timer is already started\r\n04-11 08:05:01.599 22691 22753 V Adjust  : Subsession start\r\n04-11 08:05:01.600 22691 22753 V Adjust  : Time span since last activity too short for a new subsession\r\n04-11 08:05:01.605 22691 22759 V Adjust  : Path:      /session\r\n04-11 08:05:01.605 22691 22759 V Adjust  : ClientSdk: unity4.11.4@android4.11.4\r\n04-11 08:05:01.605 22691 22759 V Adjust  : Parameters:\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tandroid_uuid     3ca3fae1-b841-40fa-a811-2cb74b22c4ed\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tapi_level        27\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tapp_token        2fm9gkqubvpc\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tapp_version      1.0\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tattribution_deeplink 1\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tcallback_params  {\"dummy_key\":\"dummy_value\"}\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tcountry          US\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tcpu_type         arm64-v8a\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tcreated_at       2018-04-11T08:05:01.561Z+0200\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdefault_tracker  5bo1dc\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdevice_manufacturer LGE\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdevice_name      Nexus 5X\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdevice_type      phone\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdisplay_height   1794\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tdisplay_width    1080\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tenvironment      sandbox\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tevent_buffering_enabled 0\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tgps_adid         5d336af6-3082-4633-82d5-0c9ea13620fb\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \thardware_name    OPP5.170921.005\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tinstalled_at     2018-04-11T08:04:54.552Z+0200\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tlanguage         en\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tneeds_response_details 1\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tos_build         OPP5.170921.005\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tos_name          android\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tos_version       8.1.0\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tpackage_name     com.adjust.examples\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tpartner_params   {\"dummy_foo\":\"dummy_bar\"}\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tscreen_density   high\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tscreen_format    normal\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tscreen_size      normal\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tsession_count    1\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \ttracking_enabled 1\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tupdated_at       2018-04-11T08:04:54.552Z+0200\r\n04-11 08:05:01.605 22691 22759 V Adjust  : \tvm_isa           arm\r\n04-11 08:05:01.617 22691 22759 D Adjust  : Wrote Package queue: [session]\r\n04-11 08:05:01.618 22691 22759 D Adjust  : Package handler wrote 1 packages\r\n04-11 08:05:01.619 22691 22759 V Adjust  : Package handler is already sending\r\n04-11 08:05:04.624 22691 22762 V Adjust  : Response: {\"app_token\":\"2fm9gkqubvpc\",\"adid\":\"938052ee9500fe157ed0281d7544fff6\",\"timestamp\":\"2018-04-11T06:05:00.642Z+0000\",\"message\":\"Install tracked\",\"attribution\":{\"tracker_token\":\"5bo1dc\",\"tracker_name\":\"tracker-2\",\"network\":\"tracker-2\"},\"ask_in\":2000}\r\n04-11 08:05:04.625 22691 22762 I Adjust  : Install tracked\r\n04-11 08:05:04.629 22691 22767 D Adjust  : Wrote Package queue: []\r\n04-11 08:05:04.630 22691 22767 D Adjust  : Package handler wrote 0 packages\r\n04-11 08:05:04.630 22691 22767 V Adjust  : Package handler can send\r\n04-11 08:05:04.632 22691 22768 D Adjust  : Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:3ca3fae1-b841-40fa-a811-2cb74b22c4ed\r\n04-11 08:05:04.633 22691 22768 D Adjust  : Waiting to query attribution in 2.0 seconds\r\n04-11 08:05:04.633 22691 22768 V Adjust  : Attribution timer canceled\r\n04-11 08:05:04.633 22691 22768 V Adjust  : Attribution timer starting. Launching in 2.0 seconds\r\n04-11 08:05:04.641 22691 22770 D Adjust  : Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:3ca3fae1-b841-40fa-a811-2cb74b22c4ed\r\n04-11 08:05:04.641 22691 22770 D Adjust  : Launching success session tracking listener\r\n04-11 08:05:06.663 22691 22769 V Adjust  : Attribution timer fired\r\n04-11 08:05:06.675 22691 22773 V Adjust  : Path:      attribution\r\n04-11 08:05:06.675 22691 22773 V Adjust  : ClientSdk: unity4.11.4@android4.11.4\r\n04-11 08:05:06.675 22691 22773 V Adjust  : Parameters:\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tapp_token        2fm9gkqubvpc\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tattribution_deeplink 1\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tcreated_at       2018-04-11T08:05:01.510Z+0200\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tenvironment      sandbox\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tevent_buffering_enabled 0\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tgps_adid         5d336af6-3082-4633-82d5-0c9ea13620fb\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \tneeds_response_details 1\r\n04-11 08:05:06.675 22691 22773 V Adjust  : \ttracking_enabled 1\r\n04-11 08:05:06.840 22691 22773 V Adjust  : Response: {\"app_token\":\"2fm9gkqubvpc\",\"adid\":\"938052ee9500fe157ed0281d7544fff6\",\"timestamp\":\"2018-04-11T06:05:02.849Z+0000\",\"message\":\"Attribution found\",\"attribution\":{\"tracker_token\":\"5bo1dc\",\"tracker_name\":\"tracker-2\",\"network\":\"tracker-2\"}}\r\n04-11 08:05:06.842 22691 22773 I Adjust  : Attribution found\r\n04-11 08:05:06.855 22691 22773 D Adjust  : Wrote Activity state: ec:0 sc:1 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:3ca3fae1-b841-40fa-a811-2cb74b22c4ed\r\n04-11 08:05:06.868 22691 22775 D Adjust  : Wrote Attribution: tt:5bo1dc tn:tracker-2 net:tracker-2 cam:null adg:null cre:null cl:null adid:938052ee9500fe157ed0281d7544fff6\r\n```\r\n\r\nMy Unity example app SDK initialisation code looks like this:\r\n\r\n```cs\r\nAdjustConfig adjustConfig = new AdjustConfig(\"2fm9gkqubvpc\", AdjustEnvironment.Sandbox, true);\r\nadjustConfig.setLogLevel(AdjustLogLevel.Verbose);\r\nadjustConfig.setDefaultTracker(\"5bo1dc\");\r\n\r\nadjustConfig.setEventSuccessDelegate(EventSuccessCallback);\r\nadjustConfig.setEventFailureDelegate(EventFailureCallback);\r\nadjustConfig.setSessionSuccessDelegate(SessionSuccessCallback);\r\nadjustConfig.setSessionFailureDelegate(SessionFailureCallback);\r\nadjustConfig.setDeferredDeeplinkDelegate(DeferredDeeplinkCallback);\r\nadjustConfig.setAttributionChangedDelegate(AttributionChangedCallback);\r\n\r\nAdjust.addSessionCallbackParameter(\"dummy_foo\", \"dummy_bar\");\r\nAdjust.addSessionCallbackParameter(\"dummy_key\", \"dummy_value\");\r\n\r\nAdjust.addSessionPartnerParameter(\"dummy_foo\", \"dummy_bar\");\r\nAdjust.addSessionPartnerParameter(\"dummy_key\", \"dummy_value\");\r\n\r\nAdjust.removeSessionCallbackParameter(\"dummy_foo\");\r\nAdjust.removeSessionPartnerParameter(\"dummy_key\");\r\n\r\nAdjust.start(adjustConfig);\r\n```"}}
{"actor":{"display_login":"uerceg"}}