snowplow / snowplow-ios-tracker

Snowplow event tracker for Swift and Objective-C. Add analytics to your iOS, macOS, tvOS and watchOS apps and games
http://snowplow.io
Apache License 2.0
81 stars 93 forks source link

Cannot find OSType & OSVersion in PlatformContextProperty #880

Closed shawn-frank closed 7 months ago

shawn-frank commented 8 months ago

Describe the bug This is not a bug, however, your documentation over here seems to suggest that we can share the osType, osVersion, deviceManufacturer and deviceModel when we configure the PlatformContextProperty

However, when I reference the PlatformContextProperty in v 6.0.1, I cannot seem to find these values.

To Reproduce Try to create a SnowplowTrackerConfiguration and set the platformContextProperties to capture osType, osVersion, deviceManufacturer and deviceModel

let trackerConfig = TrackerConfiguration()
            .appId("\(AnalyticsDimension.brand.value)-app")
            .screenViewAutotracking(false)
            .applicationContext(true)
            .sessionContext(true)
            .screenContext(true)
            .platformContextProperties([.appleIdfa, .osType ... etc])

Expected behavior I want to be able to add osType, osVersion, deviceManufacturer and deviceModel to the platformContextProperties

Device information (please complete the following information):

matus-tomlein commented 7 months ago

Hi @shawn-frank ,

These are not in the platformContextProperties configuration because they are mandatory – the trackers tracks them regardless.

You should be able to see those properties in the tracked events though. Please reopen the issue if this is not the case!