Coder Social home page Coder Social logo

Comments (2)

uerceg avatar uerceg commented on August 12, 2024

Hi @Mustafax06,

adid is a backend-side generated identifier which Adjust SDK gets only after it communicates for the first time ever with our backend and then gets this back in the answer we receive from the backend. When Adjust SDK is launched in the app for the first time ever, it sends a package we call a session to the backend. After backend responds to it, this is the first moment in which SDK gets the adid value, caches it locally and as of that moment on, provides it back if Adjust.getAdid() getter is called. We still do have a (nowadays) misfortunate implementation of this getter which is synchronous and will provide you with null back until SDK obtains the adid value, but this will change with the upcoming major SDK v5 release.

If one would want to capture the moment in which SDK is getting in possession of adid for the first time ever without the need to loop the "poll the getter -> get null -> retry" sequence, way to do that would be to implement session tracking callbacks. These callbacks would get pinged when session sending attempt succeeds / fails and if you'd check AdjustSessionSuccess and AdjustSessionFailure instances, they should contain the field which contains the adid value.

So I'd advise you maybe to give these callbacks a shot and double check if that works for your use case. Feel free to ping in case you have any further questions.

from unity_sdk.

Nawfel-bel avatar Nawfel-bel commented on August 12, 2024

Hello there @uerceg,
Can you please make sure that the SessionSuccessCallback and the SessionFailureCallback are working? because they dont seem to be invoked at all despite setting the delegates, just a simple log statement isnt even excecuted. which makes it difficult to understand when the adId is being cached

from unity_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.