-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
* feat: support multivariate flag checking * send capture call * Persistence of feature flags and groups (#31) * feat: make sure groups and feature flags and persisted and sent * remove deprecated key
PostHog/Classes/PHGSession.m
Outdated
@interface PHGSession () | ||
|
||
@property (nonatomic, copy) NSString *sessionId; | ||
@property (nonatomic) NSTimeInterval sessionStartTimestamp; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works!
PostHog/Classes/PHGSession.m
Outdated
|
||
@interface PHGSession () | ||
|
||
@property (nonatomic, copy) NSString *sessionId; |
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or app backgrounding
I think we're also missing a |
Adding Ben just for sess-rec awareness |
Happy to add a review but not sure it has much impact on sesh-rec world...? |
D'oh, right, you wouldn't need this at all, since no session recordings on mobile 🤦 |
There was a problem hiding this 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 😅 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice looks good!
Closed in favor of #100 |
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: