Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.55 KB

feature_network_changes.md

File metadata and controls

25 lines (18 loc) · 1.55 KB

Feature - Network Changes

Measure SDK captures changes to network connection state of the device. This includes changes to the type of network connection (WiFi, Mobile, etc.), the network provider (Airtel, T-Mobile, etc.), and the network generation (2G, 3G, 4G, etc.).

Note

The SDK does not add any new permissions to the app. It only uses the permissions that the app already has. Network connection state change feature is only enabled if the necessary permissions are already granted to the app.

How it works

Measure monitors changes in network. It is enabled only when the app is granted the ACCESS_NETWORK_STATE permission and the device is running on Android M (SDK 23) or a higher version. Measure does not add any new permissions to the app. It only uses the permissions that the app already has.

Tracking of [network_generation] is limited to Cellular network for Android M (SDK 23) and later. This requires the app to hold the READ_PHONE_STATE permission, which is a runtime permission. In case the user denies this permission, network generation will not be captured. For devices running Android Tiramisu (SDK 33) or later, READ_BASIC_PHONE_STATE permission is sufficient, and it does not require a runtime permission.

Data collected

Checkout the data collected by Measure for each network change in the Network Event section.