Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust.getAdId() takes no callback ? #592

Closed
mahmed1987 opened this issue Jan 25, 2024 · 2 comments
Closed

Adjust.getAdId() takes no callback ? #592

mahmed1987 opened this issue Jan 25, 2024 · 2 comments

Comments

@mahmed1987
Copy link

Adjust.getAdId() returns null at times and it is clear that it's return value depends on some async operation.

Also this is hinted here that backend communication is performed when adid is accessed
image

So my question is , how would I know when should I access getAdId such that I am certain it would not be null ?

Just like we have a callback for Adjust.getGoogleAdId , I strongly believe the sdk should also have one for Adjust.getAdId() .
Or am I missing something ? .

Installing a delay for a second between Adjust.onCreate and calling Adjust.getAdId() , will indeed be a very dirty hack.

The other option would be polling but that too appears to be a work around.

Please let me know , if there is a way at the moment to call Adjust.getAdId() and be certain to get the result instead of a null

@namini40
Copy link

@mahmed1987 take a look at this link, hope it help.

@shashanksu
Copy link
Member

Hi @mahmed1987,

Sorry for the delay in responding. Just to let you know that we recently release SDK v5.0.0 where we introduced the callback to Adjust.getAdId(). You can look here for more details.

Closing this as the reported issue is addressed. Please feel free to get back in case there's any doubt / issues.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants