Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.
Connectivity API
The Connectivity API provides access to device connectivity information, allowing you to monitor Internet connection status and respond to connectivity changes in real-time. The API enables both immediate connectivity checks and dynamic updates when network conditions change.
Anchor to Use casesUse cases
- Network monitoring: Monitor network connectivity and handle interruptions gracefully.
- Status indicators: Display connectivity status to inform users about network availability.
- Data synchronization: Queue API calls and sync operations when connectivity is restored.
- Retry logic: Implement retry logic for failed network operations.
Supported targets
- pos.
cart. line-item-details. action. menu-item. render - pos.
cart. line-item-details. action. render - pos.
customer-details. action. menu-item. render - pos.
customer-details. action. render - pos.
customer-details. block. render - pos.
draft-order-details. action. menu-item. render - pos.
draft-order-details. action. render - pos.
draft-order-details. block. render - pos.
exchange. post. action. menu-item. render - pos.
exchange. post. action. render - pos.
exchange. post. block. render - pos.
home. modal. render - pos.
home. tile. render - pos.
order-details. action. menu-item. render - pos.
order-details. action. render - pos.
order-details. block. render - pos.
product-details. action. menu-item. render - pos.
product-details. action. render - pos.
product-details. block. render - pos.
purchase. post. action. menu-item. render - pos.
purchase. post. action. render - pos.
purchase. post. block. render - pos.
return. post. action. menu-item. render - pos.
return. post. action. render - pos.
return. post. block. render
Supported targets
- pos.
cart. line-item-details. action. menu-item. render - pos.
cart. line-item-details. action. render - pos.
customer-details. action. menu-item. render - pos.
customer-details. action. render - pos.
customer-details. block. render - pos.
draft-order-details. action. menu-item. render - pos.
draft-order-details. action. render - pos.
draft-order-details. block. render - pos.
exchange. post. action. menu-item. render - pos.
exchange. post. action. render - pos.
exchange. post. block. render - pos.
home. modal. render - pos.
home. tile. render - pos.
order-details. action. menu-item. render - pos.
order-details. action. render - pos.
order-details. block. render - pos.
product-details. action. menu-item. render - pos.
product-details. action. render - pos.
product-details. block. render - pos.
purchase. post. action. menu-item. render - pos.
purchase. post. action. render - pos.
purchase. post. block. render - pos.
return. post. action. menu-item. render - pos.
return. post. action. render - pos.
return. post. block. render
Anchor to PropertiesProperties
The Connectivity API object provides access to device connectivity information. Access the following properties on the API object to monitor Internet connection status and subscribe to connectivity changes in real time.
- Anchor to subscribablesubscribablesubscribableRemoteSubscribable<ConnectivityState>RemoteSubscribable<ConnectivityState>requiredrequired
Creates a subscription to changes in connectivity. Provides an initial value and a callback to subscribe to value changes. Use for implementing connectivity-aware functionality and reactive connectivity handling.
ConnectivityState
Represents the current Internet connectivity status of the device. Indicates whether the device is connected or disconnected from the Internet.
- internetConnected
Whether the device is connected to the Internet. Returns either `Connected` or `Disconnected` to indicate the current Internet connectivity status. Use for implementing connectivity-aware functionality, displaying connectivity indicators, or controlling network-dependent features.
ConnectivityStateSeverity
ConnectivityStateSeverity
'Connected' | 'Disconnected'Anchor to Best practicesBest practices
- Design for connectivity awareness: Design your extension to handle network interruptions, informing users when network-dependent features are unavailable and providing clear guidance on next steps.
- Provide clear connectivity feedback: Display connectivity status to users when it affects functionality, helping them understand why certain features may be limited or unavailable.
- Queue operations during outages: Implement queuing mechanisms for non-critical operations that can be deferred until connectivity is restored.
Anchor to LimitationsLimitations
- The Connectivity API provides read-only access to connectivity information and can't be used to control or modify network settings on the device.
RemoteSubscribablesupports only one subscription at a time. UsemakeStatefulSubscribableif you need multiple components to subscribe to connectivity changes simultaneously.- Connectivity status reflects Internet connectivity only and may not indicate the quality or speed of the connection, which could affect API performance.
- The API monitors general Internet connectivity but doesn't provide specific information about Shopify service availability or API endpoint availability.