CMS-configured widgets

CMS-configured widgets let content managers control widget settings using CMS while you, the developer, place the widget in the app. The SDK loads the current widget configuration from the backend when the widget runs.

Before you start

  • SDK version: CMS-configured widgets are available starting with Android 1.20.3 | iOS 1.20.0 | React Native 1.20.0 | Flutter 1.20.0 | Web 0.36.3 (Row and Grid widgets).
  • Account setup: WSC Sports turns on CMS-configured widgets for your API key. Ask your WSC Sports account manager. Until WSC Sports turns them on, the widget ignores the widget remote ID and shows the layout and data source you set in code.

What you do in the app

  1. Place the Stories, Moments, or Videos widget in your app UI. Use the same content type and layout (Row, Grid, or Single) that the content manager set in CMS.
  2. Ask the content manager to share the widget remote ID available in CMS.
  3. Set widgetRemoteIdentifier to the widget remote ID when you initialize the widget.
  4. Keep a local layout and data source as a fallback if the CMS request fails.
  5. After CMS widget changes, load the widget again or call reloadData so the app picks up the new configuration.

API reference: iOS | Android | Web | React Native.

If you need advanced design or data source logic that CMS doesn't support yet, use a code-configured widget instead.

Related documentation

TopicDescription
Widget builder conceptProduct model and handoff
Widget builder how toCreate, edit, and share the widget remote ID in CMS
WidgetsCode-configured vs CMS-configured widgets
Data sourcesLabels, IDs, recommendations, and other types you set in code
Ordering and item limitsShared order and item count options

Did this page help you?