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

Fix accessing media tracking instance not on internal queue #886

Closed matus-tomlein closed 7 months ago

matus-tomlein commented 7 months ago

Describe the bug When the media tracking instance is fetched from the media controller using the MediaController.mediaTracking(id: String) function, the tracker returns a non-wrapped instance that does not dispatch method calls on the internal queue. This causes crashes when the instance is used since the precondition is not met.

Expected behavior Return a wrapped instance of the media tracking that dispatches calls on the internal queue.