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

Android Session Recordings #13267

Closed
1 task
joethreepwood opened this issue Dec 12, 2022 · 5 comments
Closed
1 task

Android Session Recordings #13267

joethreepwood opened this issue Dec 12, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request mobile

Comments

@joethreepwood
Copy link
Contributor

joethreepwood commented Dec 12, 2022

The Session Recording team is currently considering improving PostHog by adding the ability to capture session recordings from mobile devices running Android. This is part of work documented on https://github.com/PostHog/product-internal/issues/354.

There are many recording tools out there for web, and different tools for mobile -- but few for both. If we could unlock mobile session recordings, even with reduced functionality, it could be huge - especially for self-hosted customers who have few options in this space. Additionally, this would make PostHog more competitive with other session recording tools, such as HotJar.

🗂 Considered Goals

  • Run a PoC implementation for Android

Please note we are considering iOS mobile recordings and React Native solutions as separate issues.

These goals are being considered by the Session Recording Team and we'd love to hear user feedback, as well as ideas for stretch goals or implementation. Please add to this issue!

If you like this idea, please leave a 👍 or ❤️ reaction on this post to vote for it -- your votes and feedback help us prioritize what to work on next!

@marandaneto
Copy link
Member

marandaneto commented Oct 23, 2023

We're working on Session Replay for Mobile, the goal is to playback sessions to diagnose UI issues, improve support, and get context for nuanced user behavior.

We're interested in understanding how useful it is, the expectations you may have, etc, for example:

  • Is high fidelity important? would be okay if it was a representation of the UI instead of screenshots?
  • Is masking text (due to PII) a must-have feature?
  • How would you define a session (the start and end of the recording)? would you expect that to be done automatically or manually via an API eg PostHog.startRecording and stopRecording?
  • Would you like to sample recordings or do you prefer to have it all? (think about data usage, storage, slow internet)
  • What's an acceptable performance impact while the recording is running?
  • Is network inspection useful? (HTTP status code, request, and response payload).
  • And much more...

We'd like to understand a little bit better so we are sure that we are building a feature that people would love to use.

Any feedback is appreciated, let me know if you'd be willing to trade a bit of your time for being a preview user as soon as it's out.

Thanks.

@marandaneto
Copy link
Member

marandaneto commented Jan 2, 2024

Hey you all,

We have an alpha preview for Android Session Recording and we'd like to gather feedback.
Would you like to give it a try? See the instructions.

Let us know what you think and if there are any bugs and/or issues you may face.

@marandaneto
Copy link
Member

Closing this since we are beta testing already, see docs.
For actionable feedback, feel free to raise a new issue or comment on this issue.

@thisames
Copy link

thisames commented Aug 7, 2024

hey guys, beta session replay recording for android is not enabled to work in production?

I'm doing several tests in several cases in the Android SDK. Getting and testing events.

I'm a little confused about the recordings. I believe I'm configuring everything correctly. However, no recordings are arriving on my posthog dashboard.

I am following all the limitations of the doc

  • Session replay requires PostHog Android SDK version 3.4.0
  • Requires Android API >= 26.
  • Enable Recording of Session Replays for Android
  • Requires Record user sessions to be enabled in the PostHog Project Settings
    @Override
    public void onCreate() {
        super.onCreate();

        PostHogSessionReplayConfig replayConfig = new PostHogSessionReplayConfig();
        replayConfig.setMaskAllTextInputs(false);
        replayConfig.setMaskAllImages(false);
        replayConfig.setCaptureLogcat(true);
        replayConfig.setScreenshot(true);

        PostHogAndroidConfig config = new PostHogAndroidConfig(
                POSTHOG_API_KEY,
                POSTHOG_HOST,
                false,
                false,
                true,
                replayConfig
        );

        config.setDebug(true);
        config.setFlushAt(1);
        config.setCaptureDeepLinks(false);
        config.setCaptureApplicationLifecycleEvents(false);
        config.setCaptureScreenViews(true);
        config.setSessionReplay(true);
        config.setPreloadFeatureFlags(true);

        PostHogAndroid.setup(this, config);
    }

I also tried with kotlin android applications and the sdk sample itself, but I didn't get any feedback in the records.

If possible, I would like to understand the current context of Android recordings.

@marandaneto
Copy link
Member

@thisames everything seems fine with your configuration.
Is session replay enabled on your project configuration?
Can you check the console logs and see if you spot anything?
Raise an issue on https://github.com/postHog/posthog-android so we can debug this together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mobile
Projects
None yet
Development

No branches or pull requests

4 participants