Closed mahmed1987 closed 3 months ago
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
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
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