GithubHelp home page GithubHelp logo

Session control about android_sdk HOT 13 CLOSED

adjust avatar adjust commented on June 1, 2024
Session control

from android_sdk.

Comments (13)

nonelse avatar nonelse commented on June 1, 2024

Hi.

This error usually occurs if the HttpResponse entity is is used more than once. We only consume the entity once per response.

Just to be sure, did you get this behaviour by modifying the SDK or by manipulating the stack while debugging? Sometimes this is useful to see something in detail, but it could cause this behaviour.

Regarding the 30m rule that you are referring, we save a state file of the last activity and if it has passed 30m since the last one, it creates a new session package to send to the server. This behaviour has not change in the new versions.

Can you give more details how to reproduce this issue?

from android_sdk.

paulocarvalhoaig avatar paulocarvalhoaig commented on June 1, 2024

No, I didn't change the SDK, I'm using it as it is.
The only difference I have, it's that due to project structure restrictions I don't initialize the Adjust on the onCreate method of my Applicaton Class, but in a specific class for tracking initialization. But as far as I could tell the problem is not from there, because it's initialized and receive a success response from the Adjust SDK when makes attribution:

V/Adjust﹕ Response: {"attribution":{"tracker_token":"XXXXX","tracker_name":"Organic","network":"Organic"},"timestamp":"2015-03-31T13:54:33.383Z+0000","message":"Attribution found"}

How could I been causing the HttpResponse to be used more than one time? The above event of attribution and the session event are fired practically at the same time, the attribution has returns success, the session is the one that changes from time to time.

I think this issue may be related to the way I'm using the Adjust.onResume() and Adjust.onPause(). The documentation says that I shoul call it for every activity, I use 3 activities, one of the is extending other, where I work with fragments. But still I tried many combinations and never have a stable version where the session never doesn't returns the error.

Thanks.

from android_sdk.

paulocarvalhoaig avatar paulocarvalhoaig commented on June 1, 2024

Hi,

Do you have any idea of how can I solve my problem? I tried every combination for setting the Adjust.onResume() and Adjust.onPause() and I'm still having the same problem, after successfully trancking a session if uninstall and install the app again, the session and all following events won't be tracked, only after more or less 30 minutes if I install the app the events will be
This may not be a big problem for the end user, because in unlike the user will uninstall and install the app, but for the developers and testers is quite troublesome.

Thanks.

from android_sdk.

wellle avatar wellle commented on June 1, 2024

@paulocarvalhoaig: Yes we have a workflow for that. Please contact [email protected] and ask how you can reset test devices.

from android_sdk.

faizalzakaria avatar faizalzakaria commented on June 1, 2024

Hi Adjust,

We encounter the same problem as well. How could we test this in our test env then ?

I'm unable to see any adjust.com/event being fired while the log says its triggered.

Thanks.

from android_sdk.

wellle avatar wellle commented on June 1, 2024

@faizalzakaria: If you see Event tracked in the SDK logs that means the event was send to our servers and was tracked successfully. Please note that we send all traffic encrypted to https://app.adjust.com.

from android_sdk.

dbachelder avatar dbachelder commented on June 1, 2024

@wellle Can you publish the docs on resetting test devices in the readme?

from android_sdk.

wellle avatar wellle commented on June 1, 2024

@dbachelder: https://docs.adjust.com/en/getting-started/#testing-attribution

from android_sdk.

uerceg avatar uerceg commented on June 1, 2024

@paulocarvalhoaig @faizalzakaria Are you still facing these issues?

from android_sdk.

faizalzakaria avatar faizalzakaria commented on June 1, 2024

Its all good now @uerceg .

Thanks @wellle @uerceg

from android_sdk.

uerceg avatar uerceg commented on June 1, 2024

👍 Glad to hear that.

from android_sdk.

paulocarvalhoaig avatar paulocarvalhoaig commented on June 1, 2024

All good!
Thanks.
On Apr 23, 2016 22:43, "Uglješa Erceg" [email protected] wrote:

[image: 👍] Glad to hear that.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#103 (comment)

from android_sdk.

uerceg avatar uerceg commented on June 1, 2024

Thanks for update guys. 👍

from android_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.