amplitude / Amplitude-iOS

Native iOS/tvOS/macOS SDK
MIT License
303 stars 193 forks source link

When running on the visionOS device, Amplitude reports the platform as iOS instead of visionOS #488

Closed drewolbrich closed 7 months ago

drewolbrich commented 7 months ago

Expected Behavior

When an app is running on Apple Vision Pro, Amplitude should reports the platform as "visionOS".

Current Behavior

When an app is running on Apple Vision Pro, Amplitude reports the platform as "iOS".

In this screenshot from the Amplitude web site, the app was running on visionOS 1.1.1, but the OS is reported as iOS 1.1.1.

platform

Possible Solution

N/A

Steps to Reproduce

Build and run an app for visionOS that includes Amplitude. The app can run in Xcode's visionOS simulator. It is not necessary to have an Apple Vision Pro.

Environment

Thank you for investigating this issue.

Please let me know if you'd like an example Xcode project demonstrating the issue.

drewolbrich commented 7 months ago

Oops, I see this is already covered by Amplitude-Swift in https://github.com/amplitude/Amplitude-Swift/issues/130