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

On Android setSessionTrackingFailedCallbackListener is always called #208

Open
AChevallier opened this issue Jan 25, 2023 · 2 comments
Open

Comments

@AChevallier
Copy link

AChevallier commented Jan 25, 2023

Hello,

I have a problem on android.

I want to get the Adid in my async storage so I get this code
` adjustConfig.setSessionTrackingSucceededCallbackListener(
(sessionSucceeded) => {
Adjust.getAdid((adid) => {
if (adid) {
asyncStorage.setItem('adjust:adid', adid)
}
})

    logger.log(
      '[Adjust] session tracking succeeded :' +
        JSON.stringify(sessionSucceeded)
    )
  }
)`

This is working on IOS but on android it fails and trigger this
`adjustConfig.setSessionTrackingFailedCallbackListener((sessionFailed) => {
  logger.log(
    '[Adjust] session tracking failed :' +
      JSON.stringify(sessionFailed) +
      ' config : ' +
      JSON.stringify(adjustConfig)
  )
})`

I've got the error
Data residency policy violation with adjustConfig.setUrlStrategy(AdjustConfig.DataResidencyEU)

OR the error Session failed (device is opted out) without

Thank you for your help
@uerceg
Copy link
Contributor

uerceg commented Jan 25, 2023

Hi @AChevallier,

It seems like your test device at some point in time invoked Adjust.gdprForgetMe method and is because of that opted out from any further tracking by Adjust. Could it be that you invoked that method at some point in the past?

@AChevallier
Copy link
Author

Hello @uerceg,
Indeed, I already call Adjust.gdprForgetMe in the past. I gradually delete the test accounts during my testing with calling Adjust.gdprForgetMe.

How can I make it work with my device ?

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

2 participants