-
Notifications
You must be signed in to change notification settings - Fork 72
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
I can't access to "Ad-ID" in the first session #274
Comments
Hi @Mustafax06,
If one would want to capture the moment in which SDK is getting in possession of 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. |
Hello there @uerceg, |
It has been over a year, and this issue is still not resolved. As @Nawfel-bel pointed out, the callbacks are not being triggered at all. I can't even perform a simple check to see if the SDK is initialized. It's incredibly frustrating to deal with a system that lacks such basic functionality. This isn't just an inconvenience; it significantly affects the usability and reliability of the SDK. |
Hey @Mustafax06 and @Nawfel-bel, Sorry for the delay in replying to this one. Session callbacks are going to be triggered when the session is attempted to be tracked. Not sure if there's maybe a misconception in what the session definition is. Session is a type of package that SDK will try to send to backend once it's initialized for the first time ever inside of an app. Once a session has been tracked, subsequent session will be tracked only if app spends more than 30 minutes outside of foreground. You can background the app, you can kill it - SDK doesn't make a difference between these two scenarios. But after the app has left the foreground, new session will be fired the next time the app enters foreground, if more than 30 minutes has passed in between. The fact that you are not seeing session callbacks being fired could be because in your tests the time for the session to be tracked has not come. How are you trying to see session callback being tracked in your tests? The easiest way to see the session being fired each time you run your app is if you reinstall it. Reinstalling the app will wipe all the SDK data it keeps track of and it will cause it to trigger new session upon initialization after reinstall. Also, @Nawfel-bel, not sure if you saw it, but exactly in attempt to address the situation described in this issue, changes have been made in |
Hey @uerceg |
Yes, uninstall did the trick for the callback. And for the ID, I got it in the callback so both of the issues are resolved. But getAdId still won't work on both iOS and Android, says adjust must initialized first. If anyone encounters the same issue, just set a session tracking callback, and read the ID from the session. Thanks for the reply @uerceg |
As soon as the first session has been tracked by the SDK, |
I need Ad-ID within 1 minute of the first session. But I could never get the ID in the first session, in the second session, it retrieves immediately. Can I get it in the first second? Here's my code (I'm initializing the SDK automatically, not manually);
private IEnumerator CheckAndSetAdID() { while (string.IsNullOrEmpty(Adjust.getAdid())) { yield return new WaitForSeconds(0.5f); } _purchases.SetAdjustID(Adjust.getAdid()); Debug.Log("Adjust ID has been set: " + Adjust.getAdid()); }
I need this ID because most of our users make their first purchases within the first minute of the first session. And RevenueCat receives the purchase and logs it to Adjust. So I need the Ad-ID ASAP in the first session but I could never get it.
Edit: sorry for the badly formatted code, I couldn't arrange it, sorry
The text was updated successfully, but these errors were encountered: