WirelessInsights
Receive notifications for anticipated changes in cellular data service conditions.
Overview
The WirelessInsights framework notifies your app about network conditions that might affect its ability to use data. The framework collects metrics on the device about cellular conditions, such as whether the device is in service, current cellular congestion, and more. With this information, you can improve someone’s experience using your app.
When your app receives a notification about a potential degradation of cellular service, you can adapt to the problem in a number of ways:
Prefetch and buffer data prior to the event.
Reduce your bit rate.
Defer activity to a time when cellular conditions are better.
Build in additional retries.
The app receives an asynchronous sequence of ServicePrediction instances, which describe anticipated events in terms of their impact and expected timing. The prediction includes metrics indicating the level of confidence in each factor of the prediction.
Your app can take action appropriate to its use of cellular data; for example:
A streaming media app might react to a prediction of a lengthy, high-impact event by buffering media in advance of the event. Or, the app might proactively reduce its bit rate.
An app that performs one-time downloads of large files might defer a download until after an event passes.