amplitude / AmplitudeSessionReplay-iOS

MIT License
1 stars 0 forks source link

[Session Replay iOS Middleware] - can not play replay session on the amplitude DashBoard. #8

Closed TomFluentjoy closed 1 month ago

TomFluentjoy commented 1 month ago

Expected Behavior

We were expecting that we could play the session replay in the amplitude Our organization is using the Plus plan.

Current Behavior

We can not see any replay on the amplitude with an error like that.

Session Unavailable Try refreshing this page in a few minutes. This session may be unavailable due to:

Viewing this session before it is processed (~1 min) Instrumentation issues such as incorrect device ID, API key, or project (check what’s instrumented vs. the message above) Limited user activity where events are not processed (e.g. page bounces) Retention time frame for sessions has passed Session replay isn’t instrumented on all pages that the user may be viewing

To debug instrumentation issues, view the ingestion dashboard.

Possible Solution

Steps to Reproduce

  1. We are using maintenance iOS SDK and here is the setup in cocoa pods:

    pod 'Amplitude', :git => 'https://github.com/Amplitude/Amplitude-iOS.git'
    pod 'AmplitudeSessionReplay', :git => 'https://github.com/amplitude/AmplitudeSessionReplay-iOS.git'
    pod 'AmplitudeiOSSessionReplayMiddleware', :git => 'https://github.com/amplitude/AmplitudeSessionReplay-iOS.git'
  2. The app is setting up like this:

        Amplitude.instance().defaultTracking.sessions = true
        Amplitude.instance().setDeviceId(DeviceIDManager.shared.getAppDeviceID())
        Amplitude.instance().optOut = true
        Amplitude.instance().addEventMiddleware(AmplitudeiOSSessionReplayMiddleware(sampleRate: 0.01))
        Amplitude.instance().initializeApiKey(AppEnvironment.amplitudeAPIKey)
        Amplitude.instance().logEvent("app_finished_setting_amplitude_sdk")

Environment

crleona commented 1 month ago

Hi @TomFluentjoy - A couple of things to check in your configuration:

If you're still having issues, is there any log output from the session replay instance?

TomFluentjoy commented 1 month ago

thanks for the fast response @crleona.

We are using the latest maintenance Amplitude framework 8.21.0.
About this one: How could I get that? we already added the log with for amplitude tracker but seem to be nothing broken with session replay.

crleona commented 1 month ago

Hi @TomFluentjoy - we've released v0.0.7, which hopefully resolves some of these issues. Please let us know if this persists after you update!

TomFluentjoy commented 1 month ago

Hi @crleona cr regarding to the documentation for setting up the amplitude middleware by using cocoapods and we are using this setup: `

`

But seems like the session replay version is still keeping the version at 0.0.2. Here are the logs: `

`

Therefore I would like to ask about the setup to pointing the release version 0.0.7

TomFluentjoy commented 1 month ago

Hi @crleona I have updated the Amplitude to 8.22.0 and right now we can see the session replay on our amplitude dashboard. But we also wanted to update the session replay SDK from 0.0.2 to 0.0.7. Please reach out if you need more information from our side.

Thanks.

crleona commented 1 month ago

Hi @TomFluentjoy - it looks like we've missed some of the version updates for cocoapods, and cross-pod dependencies still seem to have issues. We'll take a look at the latter, but for now, running pod update on your current configuration should update to v0.0.8.

TomFluentjoy commented 1 month ago

Thanks @crleona.