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

feat: session id support for payloads #32

Closed
wants to merge 29 commits into from
Closed

Conversation

EDsCODE
Copy link
Member

@EDsCODE EDsCODE commented Jul 25, 2022

What does this PR do?

Where should the reviewer start?

How should this be manually tested?

Any background context you want to provide?

What are the relevant tickets?

Screenshots or screencasts (if UI/UX change)

Questions:

  • Does the docs need an update?
  • Are there any security concerns?
  • Do we need to update engineering / success?

Base automatically changed from feature-flag-support to master July 25, 2022 18:04
@EDsCODE EDsCODE marked this pull request as ready for review July 25, 2022 18:40
@interface PHGSession ()

@property (nonatomic, copy) NSString *sessionId;
@property (nonatomic) NSTimeInterval sessionStartTimestamp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm calling this a sessionLastTimestamp here instead to align with https://github.com/PostHog/posthog-js-lite/pull/4/files#diff-30dde81fd76ff386b3bde594b35a527f3bac4438ed7ef3183ed03ab756b4c562R34, shall we consolidate to that naming?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!


@interface PHGSession ()

@property (nonatomic, copy) NSString *sessionId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these values persist across app restarts? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or app backgrounding

@liyiy
Copy link
Contributor

liyiy commented Jul 26, 2022

I think we're also missing a resetSessionId method ?

@EDsCODE EDsCODE requested a review from rcmarron August 29, 2022 16:06
@neilkakkar neilkakkar requested review from benjackwhite and removed request for rcmarron October 13, 2022 14:25
@neilkakkar
Copy link
Contributor

Adding Ben just for sess-rec awareness

@benjackwhite
Copy link
Collaborator

Happy to add a review but not sure it has much impact on sesh-rec world...?

@neilkakkar
Copy link
Contributor

D'oh, right, you wouldn't need this at all, since no session recordings on mobile 🤦

Copy link
Contributor

@neilkakkar neilkakkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, judging by the tests! (no swift-fu here 😅 )

Copy link
Collaborator

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice looks good!

@benjackwhite benjackwhite self-assigned this Jan 25, 2023
@marandaneto marandaneto mentioned this pull request Jan 19, 2024
@marandaneto
Copy link
Member

Closed in favor of #100

@marandaneto marandaneto closed this Feb 6, 2024
@marandaneto marandaneto deleted the session-id-support branch March 27, 2024 15:34
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

Successfully merging this pull request may close these issues.

5 participants