Skip to main content

How do I capture device type and location?

The Swrve SDK automatically collects the following device attributes on iOS, Android, and Unity. Each attribute is sent as a user property and updated each time they start a new session.

User attribute nameDescriptionExample values
swrve.device_widthThe width in pixels of the device screen.1125
swrve.device_heightThe height in pixels of the device screen.2436
swrve.device_dpiThe DPI in pixels of the device screen.489
swrve.device_nameThe name of the device as reported by the OS.See Device names section below.
swrve.osThe OS the device is running.iOS, Android
swrve.os_versionThe version of the OS the device is running.iPhone OS 16.4, Android OS 14
swrve.app_storeThe app store the app was downloaded from.Apple, Google or Amazon
swrve.languageThe language of the device.en-GB (Mapped to English (GB))
swrve.sdk_versionThe version of the Swrve SDK being used in the app.iOS 8.5.0, Android 10.9.1, Unity 9.0.1

If you are not using a Swrve SDK on a mobile device, you must send these attributes manually.


Using device info to define user segments​

When you create your segments, use the device properties above to identify and target users on a specific device or OS. For example, if you want to target iPhone users only with a messaging campaign or A/B test, use the following filters in the audience or segment builder:

Data TypeFilter TypeOperatorValue
DeviceDevice NamecontainsiPhone

For more information, see Creating segments.


Device names​

The device names tracked by Swrve are taken directly from the device.

On iOS, device names are predictable and take the form ,. On Android devices, names are less predictable and depend heavily on the OS to report a coherent name.

Click a link below to view examples of iOS and Android device names:

iOS

Device nameDescription
iPhone7,1iPhone 6 Plus
iPhone7,2iPhone 6
iPhone8,1iPhone 6s
iPhone8,2iPhone 6s Plus
iPhone8,4iPhone SE (1st generation)
iPhone9,1; iPhone9,3Phone 7
iPhone9,2; iPhone9,4iPhone 7 Plus
iPhone10,1; iPhone10,4iPhone 8
iPhone10,2; iPhone10,5iPhone 8 Plus
iPhone10,3iPhone X
iPhone10,6iPhone X
iPhone11,2iPhone XS
iPhone11,6iPhone XS Max
iPhone11,8iPhone XR
iPhone12,1iPhone 11
iPhone12,3iPhone 11 Pro
iPhone12,5iPhone 11 Pro Max
iPhone12,8iPhone SE (2nd generation)
iPhone13,1iPhone 12 mini
iPhone13,2iPhone 12
iPhone13,3iPhone 12 Pro
iPhone13,4iPhone 12 Pro Max
iPhone15iPhone 13 mini
iPhone15iPhone 13
iPhone15iPhone 13 Pro
iPhone15iPhone 13 Pro Max
iPhone15iPhone SE (3rd generation)
iPhone16iPhone 14
iPhone16iPhone 14 Plus
iPhone16iPhone 14 Pro Max
iPad6,11; iPad6,12iPad (5th generation)
iPad7,5; iPad7,6iPad (6th generation)
iPad7,11; iPad7,12iPad (7th generation)
iPad11,6; iPad11,7iPad (8th generation)
iPad2,4iPad 2 (Wi-Fi, revised)
iPad5,3; iPad5,4iPad Air 2
iPad11,3; iPad11,4iPad Air (3rd generation)
iPad13,1; iPad13,2iPad Air (4th generation)
iPad5,1; iPad5,2iPad mini 4
iPad11,1; iPad11,2iPad mini (5th generation)
iPad6,3; iPad6,4iPad Pro 9.7-inch
iPad7,3; iPad7,4iPad Pro 10.5-inch
iPad8,1; iPad8,2; iPad8,3; iPad8,4iPad Pro 11-inch (1st generation)
iPad8,9; iPad8,10iPad Pro 11-inch (2nd generation)
iPad13,4; iPad13,5; iPad13,6; iPad13,7iPad Pro 11-inch (3rd generation)
iPad6,7; iPad6,8iPad Pro 12.9-inch (1st generation)
iPad7,1; iPad7,2iPad Pro 12.9-inch (2nd generation)
iPad8,5; iPad8,6; iPad8,7; iPad8,8iPad Pro 12.9-inch (3rd generation)
iPad13iPad Pro 12.9-inch (4th generation)
iPad15iPad Pro 12.9-inch (5th generation)
iPad16iPad Pro 12.9-inch (6th generation)
iPod1,1iPod touch
iPod2,1iPod touch (2nd generation)
iPod3,1iPod touch (3rd generation)
iPod4,1iPod touch (4th generation)
iPod5,1iPod touch (5th generation)
iPod7,1iPod touch (6th generation)
iPod9,1iPod touch (7th generation)

Android

Retail BrandingMarketing NameModel
SamsungGalaxy S21 5GSM-G9910
SamsungGalaxy S21 UltraSM-G9980
SamsungGalaxy Note 20 Ultra 5GSM-N986B
MotorolaMoto G Power (2021)XT2041DL
OnePlusOnePlus 9 ProLE2120
GooglePixel 4a 5GGD1YQ
GooglePixel 5GD1YQ
HuaweiP40 ProELS-NX9

For a list of devices supported for use with Google Play, click here.