Adaptive content quality for 5G speed in mobile app

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Adaptive content quality for 5G speed in mobile app
Medium
~3-5 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Implementing Adaptive Content Quality Based on 5G Speed in Mobile Applications

5G provides bandwidth previously unavailable in mobile networks. However, simply "enabling maximum quality on 5G" is the wrong approach. 5G speed is inconsistent: 5G NSA (Non-Standalone) often performs like LTE with minimal benefits in practice, while mmWave signal degrades around building corners. Adaptation should respond to real measured network parameters, not network type alone.

Measuring Real Throughput

NetworkCapabilities.getLinkDownstreamBandwidthKbps() on Android returns an estimated speed from the radio module—not the actual current throughput. It provides technology-based averages (LTE: ~20 Mbps, 5G Sub-6: ~100–400 Mbps), not current channel measurements.

For real throughput, use active probing or passive observation of actual HTTP responses. The most accurate approach: measure throughput from real transfers using exponential moving average:

// Update throughput estimate with each download
function updateThroughputEstimate(bytesLoaded: number, durationMs: number) {
  const measuredKbps = (bytesLoaded * 8) / durationMs; // kbps per ms = Mbps
  // EMA with alpha=0.3 — smooth but responsive to recent data
  throughputEstimate = 0.7 * throughputEstimate + 0.3 * measuredKbps;
}

EMA (Exponentially Moving Average) smooths outliers. alpha=0.3 works well for moderately variable networks. For unstable networks (mmWave), use alpha=0.5.

Content Quality Levels

Standard video quality tiers:

Level Bitrate Resolution Minimum Throughput
Low 400 kbps 360p 600 kbps
Medium 1.5 Mbps 720p 2 Mbps
High 4 Mbps 1080p 5 Mbps
Ultra 15 Mbps 4K 20 Mbps

For images: WebP with different quality tables (JPEG quality 40/60/80/95 or WebP equivalents), or different sizes (400px, 800px, 1600px, 3200px).

Hysteresis: Prevent Frequent Switching

Without hysteresis, the app will "flicker" between quality levels near threshold values. Rule: require 20–30% sustainable surplus to upgrade quality; only 10% drop below minimum to downgrade.

const UPGRADE_BUFFER = 1.3; // +30% margin to upgrade
const DOWNGRADE_THRESHOLD = 0.9; // -10% to downgrade

function selectQualityLevel(currentKbps: number, currentLevel: QualityLevel): QualityLevel {
  const levels = [LOW, MEDIUM, HIGH, ULTRA];
  const idx = levels.indexOf(currentLevel);

  // Try upgrade
  if (idx < levels.length - 1) {
    const next = levels[idx + 1];
    if (currentKbps >= next.minKbps * UPGRADE_BUFFER) return next;
  }
  // Try downgrade
  if (idx > 0) {
    if (currentKbps < currentLevel.minKbps * DOWNGRADE_THRESHOLD) return levels[idx - 1];
  }
  return currentLevel;
}

Additionally: don't switch more than once every 5–10 seconds. Debounce quality level changes.

iOS: Network Path Monitor

On iOS, use NWPathMonitor from Network.framework:

import Network

let monitor = NWPathMonitor()
monitor.pathUpdateHandler = { path in
    if path.usesInterfaceType(.cellular) {
        // Check 5G availability via path.status and isExpensive
        let is5G = path.isConstrained == false // heuristic, no direct API
        DispatchQueue.main.async {
            self.updateQualityForPath(path)
        }
    }
}
monitor.start(queue: DispatchQueue.global(qos: .background))

iOS doesn't provide direct API to identify "this is 5G with these parameters." CTTelephonyNetworkInfo.currentRadioAccessTechnology returns technology type: CTRadioAccessTechnologyNRNSA (5G NSA) or CTRadioAccessTechnologyNR (5G SA). But type ≠ speed. Combine with active throughput measurement.

Preloading on High-Speed Transition

When 5G with high throughput is detected, initiate preload of next content before user requests it. In video apps: preload the next video in queue to 50–60% during idle. In image feeds: load ultra-resolution versions of visible elements and the next 3–5 items beyond viewport.

react-native-fast-image supports preloading via FastImage.preload([...]). On native iOS: URLSession with background configuration allows tasks to continue in background.

Estimate

Adaptive content quality with throughput measurement, hysteresis, and preload logic: 3–5 weeks for one platform. Cross-platform implementation (React Native with native modules): 4–7 weeks.