Device Info lets you retrieve information about the user’s device. For example, you could work out their screen size, whether they are on Android or iOS, or what browser they are using.
You can then use that information as simple analytics in your database to see how your users interact with your app—or use Conditions to show different things.
For example, in the welcome screen below, install instructions are shown based on the fact the user is viewing on iOS.
In Glide, click the Settings icon in the upper-right corner.
Navigate to the Integrations tab and then select Device Info.
Click the Add to app button.
Not all devices will support all device attributes. Some devices may only support some, and this will vary from device to device.
Device info can be used in the Data Editor as a Computed Column found in the group of columns called Integrations. When added as a column, the device info attribute will be applied to all rows in the table.
It’s important to note that when used as a Computed Column, the value returned will only be available to the current user. If you want to gather information about all of your users' devices, then you should use it as an Action, so that the results are stored in Basic Columns.
To learn more generally about Integrations in Glide, including how they affect your app’s usage, check out our Introduction to Integrations.
Click on the plus (+) sign in the Components panel and select the Component you want to trigger the action.
In the General tab on the right side of the Layout Editor, navigate to the Actions section and select Get device info.
Select the icon and descriptive text to use in your app.
Use the + Add Value button to add as many values to the action as you need.
You can optionally add Conditions for certain criteria to be met before a user can trigger this action.