Skip to main content

SDK Reference - setDeviceParams

React native
Flutter
Swift
Kotlin

The setDeviceParams method allows for configuring device parameters.
Utilizing device parameters in a smart listing allows customization of products for sale based on these parameters.

Unlike user tags, device parameters are not stored on the IAPHUB server; instead, they are simply provided to the IAPHUB server when fetching the products for sale.

Please keep the following guidelines in mind when working with device parameters:

  • The parameters are not saved on the device and won't persist if the app is restarted.
  • Using the method again will remove any previously set parameters.
  • A parameter key is limited to 32 characters and must be a valid key (^[a-zA-Z_]*$).
  • A parameter value is limited to 32 characters.
  • You can provide up to 5 parameters.

You can clear all the device parameters by passing an empty object.

Example

await Iaphub.setDeviceParams({appVersion: '2.0.0'});
React Native
Flutter
Swift
Kotlin

Parameters

ObjectDevice parameters

Response

This method does not return any response.