Skip to content

Commit

Permalink
Add Visit Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
bddq committed Feb 8, 2024
1 parent fa73e2b commit 4655367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PostHog/PostHogContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class PostHogContext {
properties["$os_name"] = device.systemName
properties["$os_version"] = device.systemVersion

properties["Visit Platform"] = (device.userInterfaceIdiom == .pad) ? "Tablet iOS" : "Mobile iOS";

var deviceType: String?
switch device.userInterfaceIdiom {
case UIUserInterfaceIdiom.phone:
Expand Down

0 comments on commit 4655367

Please sign in to comment.