Last modified November 22, 2014 by Gordon Glauser

Swrve User Properties

User properties specify the current state of the user. You can use both default and custom properties for tracking and targeting of in-app messages, Conversations and push notifications.

Assign user properties to easily segment your user base and send the status of the user. For example, use the swrve.sim_operator.iso_country_code user property to target users in a certain country, or create a custom user property called premium, and then target non-premium users and premium users.


Default User Properties

Some user properties are automatically sent to Swrve at initialization. The default properties are:

Property Description
swrve.os The operating system of the device. (iPhone OS, Android…)
swrve.os_version The operating system version. (iOS 7.0.4, Android 2.3.3…)
swrve.language The language of the device.
swrve.sdk_version The Swrve SDK being used.
swrve.service_dpi The dots per inch of the device.
swrve.device_name The name of the device.
swrve.device_width The width of the device in pixels.
swrve.device_height The height of the device in pixels.
swrve.sim_operator.name The mobile operator of the registered SIM card.
swrve.sim_operator.iso_country_code The 2-letter ISO country code of the mobile operator.
swrve.sim_operator.code The unique number assigned to every mobile operator in all countries of the world.
swrve.device_region (iOS SDK 4.0 or higher; Android SDK 4.1 or higher) The 2-letter ISO country code of the selected region of the device.
iOS Only (SDK version 4.0 or higher)
swrve.permission.ios.photos The user’s photo permission status. Possible string values are unknown, unsupported, denied or authorized.
swrve.permission.ios.push_notifications The user’s push notifications permission status. Possible string values are unknown, unsupported, denied or authorized.
Swrve.permission.ios.contacts The user’s contacts permission status. Possible string values are unknown, unsupported, denied or authorized.
Swrve.permission.ios.location.when_in_use The user’s location (when in use) permission status. Possible string values are unknown, unsupported, denied or authorized.
Swrve.permission.ios.location.always The user’s location (when in use) permission status. Possible string values are unknown, unsupported, denied or authorized.
Swrve.permission.ios.camera The user’s camera permission status. Possible string values are unknown, unsupported, denied or authorized.

Custom User Properties

Create custom user properties to segment your users and learn more about their status in your app. For more information on creating custom user properties, see the relevant SDK integration guide: