-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update device type #63
Conversation
Any news @marandaneto? |
Sorry for the delay, there's a similar issue here PostHog/posthog-flutter#49 I've been doing this with compile flags, eg.
They come from https://github.com/apple/swift-corelibs-foundation/blob/main/CoreFoundation/Base.subproj/SwiftRuntime/TargetConditionals.h IIRC, would you mind testing this out? but never used
So it might be that this gives a false positive, what do you think? |
Conditional flags mentioned can work but cannot identify a CarPlay device (maybe PostHog will support that). Because |
That's also possible with the |
I think adding new values is no big deal. Changing existing data though... Less sure. I feel like we could make this a minor change or wait till the Swift rewrite and include it as part of the major change there 🤔 If it can wait I would personally opt for the rewrite as we may want to make more breaking changes at that point as wel |
@marandaneto Done! |
What does this PR do?
This updates the device type property sent by SDK to conform examples seen in documentation.
Where should the reviewer start?
Just check
PHGPostHogIntegration
file.How should this be manually tested?
Trigger any event and check that
$device_type
is set with one of the implemented values.Any background context you want to provide?
Old value "ios" doesn't represent the a device type. Even less for tvOS apps.