This feature is available only under Device Cloud Pro, Device Cloud Pro + Visual Cloud, and Enterprise Pro plans. For more details check out our pricing page.
Currently, eSIMs are supported on iPhone 13 and iPhone 14 devices only.
To use this feature on dedicated devices, refer to the Private Devices documentation.
BrowserStack App Automate provides access to SIM-equipped devices and enables you to test SIM-related use cases such as:
Receiving SMS on the allocated device during your test session.
Composing and sending SMS from the allocated device during your test session.
If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:
Capability
Description
enableSim
Set this capability to "true" to to obtain a device with SIM.
simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
platforms:-platformName: android
deviceName: Samsung Galaxy S22 Ultra
platformVersion:12.0enableSim:truesimOptions:region: USA
esim:true
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
Set this capability to "true" to to obtain a device with SIM.
simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
var capabilities ={"platformName":"android","appium:platformVersion":"12.0","appium:deviceName":"Google Pixel 6",'bstack:options':{"enableSim":"true","simOptions":{"region":"USA",}}}
Set this capability to "true" to obtain a device with SIM.
browserstack.simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:
Capability
Description
enableSim
Set this capability to "true" to to obtain a device with SIM.
simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
Example:
```yml
platforms:
- platformName: ios
deviceName: iPhone 14 Pro Max
platformVersion: 16
enableSim: true
simOptions:
region: USA
esim: true
```
platforms:-platformName: ios
deviceName: iPhone 14 Pro Max
platformVersion:16enableSim:truesimOptions:region: USA
esim:true
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
Set this capability to "true" to to obtain a device with SIM.
simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
var capabilities ={"platformName":"ios","appium:platformVersion":"16.0","appium:deviceName":"iPhone 14",'bstack:options':{"enableSim":"true","simOptions":{"region":"USA","esim":"true"}}}
Set this capability to "true" to obtain a device with SIM.
browserstack.simOptions
Set the configuration “region” to the below mentioned country name to obtain a SIM device for that country. Android: India, USA iOS: India, USA Set the configuration esim to true to enable esim option for the device.
Use the following executor command in your test scripts to retrieve SIM properties of the allocated device such as the phone number and region during session run time: