Timed event on different processes

Hello,

 

I am facing a problem on my android app when I am trying to log a timed event that starts in a android service and finishes in another process, when it happens the timed event is not recorded.

 

Is it the correct behavior? Is there anyway to handle it?

 

Thanks,

Samir

0

Comments

3 comments
  • Official comment

    Hello, which SDK and which SDK version are you using?

    What do you mean with "another process"? How specifically are you doing that? Do you mean another thread?

    Could you share with me your SDK initialization code?

    Could you enable logging and share with me what is printed there? More information on enabling logging can be found here:
    https://support.count.ly/hc/en-us/articles/360037754031-Android-SDK#sdk-logging

    When starting and stoping that time event, could you check if the SDK is initialized with this:
    https://support.count.ly/hc/en-us/articles/360037754031-Android-SDK#checking-if-init-has-been-called

    Comment actions Permalink
  • Hello,

    I mean different services where, even though, they are the same app the android.os.Process.myPid() between them are different.

    That is how the initialization is done:

    Countly.sharedInstance().init(getCountlyConfig(application, countlyAppKey))

     

    You can find here the log for the event: LISTENING_DELAY

    2022-05-13 09:29:01.521 5828-5828 D/--SPCH-ANALYTICS: com.speech.core:interactor (5828) ly.count.android.sdk.Countly@8b60d49 Start timed event: LISTENING_DELAY
    2022-05-13 09:29:02.467 5726-5726 D/--SPCH-ANALYTICS: com.speech.core (5726) ly.count.android.sdk.Countly@f952b6 Stop timed event: LISTENING_DELAY
    2022-05-13 09:29:02.467 5726-5726 D/Countly: [ModuleEvents] Ending event: [LISTENING_DELAY]

    The event starts on the process id 5828 and ends on the process 5726

     

    Thanks,

    Samir

    0
    Comment actions Permalink
  • Could you please send the full logs? From the initialization of the SDK to after ending the timed event. I want to see the full picture of what is happenining inside of the SDK.

    0
    Comment actions Permalink

Please sign in to leave a comment.