Repository navigation
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
PHGPostHogIntegrationfile.How should this be manually tested?
Trigger any event and check that
$device_typeis 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.