Telefonica / webview-bridge

Novum JavaScript Bridge
MIT License
27 stars 7 forks source link

WEB-1662 Add PERMISSION_REQUIRED enum value to DATA_CONNECTION_INFO method #122

Closed yamal-alm closed 10 months ago

yamal-alm commented 10 months ago

When READ_PHONE_STATE permission (only required for mobileConnectionType field in Android) is not granted when DATA_CONNECTION_INFO bridge method is invoked, we are now returning a new PERMISSION_REQUIRED enum value inside mobileConnectionType field instead of returned a whole error response. This allow to avoid valuable information that can be used even when the user denies the permission.