Troubleshooting Video Loading Issues on iOS: Slow Performance Over Mobile Data but Fast on Wi-Fi

Hello,

We are developing a social media application that allows users to share and view content in the form of images and videos. The app is built with Angular and Ionic, and we use Capacitor to integrate native functionalities.

Currently, we are experiencing an issue with content loading on iOS devices. Specifically, when the iPhone is connected to Wi-Fi, videos load quickly and play smoothly. However, when using mobile data, videos take a long time to load or, in some cases, do not load at all.

We are trying to identify the cause of the issue and determine whether it could be related to Xcode configuration or any system restrictions. Some potential reasons we have considered include:

iOS Mobile Data Usage Restrictions

iOS may limit mobile data usage for large downloads or streaming content if the app does not have the proper permissions. In Settings > Mobile Data, users can restrict data usage for specific apps. App Transport Security (ATS) Configuration

Xcode and iOS enforce strict security policies for network connections through App Transport Security (ATS). If the API serving the videos uses HTTP instead of HTTPS or has restrictive headers, this could affect loading over mobile networks. Xcode Network Usage Settings

Xcode allows configurations related to network access. There might be a setting limiting access to mobile networks when the device is not on Wi-Fi. Video Quality and Adaptability Differences

If videos are not optimized for mobile networks (e.g., high-quality formats without adaptive versions), loading times could be significantly longer. Implementing HLS (HTTP Live Streaming) could improve playback on slower networks. Request Timeout Issues

If video loading requests have a short timeout, slower mobile network connections might exceed this limit, causing the request to fail. Compression and Caching

It is essential to check if videos are properly compressed and if caching is implemented to improve performance on mobile networks. Given this situation, we would like to know what Xcode settings might be affecting video loading performance on mobile data and how we can adjust them to enhance the user experience.

Troubleshooting Video Loading Issues on iOS: Slow Performance Over Mobile Data but Fast on Wi-Fi
 
 
Q