Tag

NSURLProtocol

0 views collected around this technical thread.

Dada Group Technology
Dada Group Technology
Jul 29, 2022 · Mobile Development

Network AOP Approaches for iOS Apps: Comparison and Implementation in Dada Express

To enable encrypted transmission and traffic monitoring across multiple iOS apps with diverse networking frameworks, this article compares several network AOP solutions—including AFNetworking, Moya, custom frameworks, runtime method swizzling, and NSURLProtocol—evaluates their pros and cons, and details the chosen NSURLProtocol-based implementation with plugin architecture.

AFNetworkingMoyaNSURLProtocol
0 likes · 11 min read
Network AOP Approaches for iOS Apps: Comparison and Implementation in Dada Express
Youzan Coder
Youzan Coder
Mar 26, 2021 · Mobile Development

Dynamic Domain Name Implementation in Mobile Apps

The article explains how to implement dynamic domain name switching in mobile apps across iOS, Android, Flutter, and H5 by using a configuration center and native network interception techniques such as NSURLProtocol, OkHttp instrumentation, texture bridging, and frontend configuration to resolve regional DNS issues and enable extended features like request statistics and custom responses.

AndroidCross-PlatformDynamic Domain
0 likes · 10 min read
Dynamic Domain Name Implementation in Mobile Apps
Hujiang Technology
Hujiang Technology
Jun 26, 2017 · Mobile Development

iOS Network Monitoring: NSURLProtocol, Hook Techniques, and NSURLSessionTaskMetrics

The article explains the challenges of mobile network environments in China, introduces connection migration issues, and presents iOS network monitoring solutions using NSURLProtocol, code injection (Hook) with Method Swizzling, NSProxy, and Fishhook, as well as detailed usage of NSURLSessionTaskMetrics for performance analysis.

FishhookHookMethod Swizzling
0 likes · 18 min read
iOS Network Monitoring: NSURLProtocol, Hook Techniques, and NSURLSessionTaskMetrics
Weidian Tech Team
Weidian Tech Team
Apr 27, 2016 · Mobile Development

How to Load H5 Pages in iOS Apps at Native Speed Using NSURLProtocol

This article explains how to achieve native‑like instant loading of H5 pages in mobile apps by pre‑packaging resources, dynamically downloading resource bundles at runtime, and intercepting requests with NSURLProtocol to serve local files, complete with design flow, code examples, and performance comparison.

Dynamic UpdateNSURLProtocolResource Packaging
0 likes · 9 min read
How to Load H5 Pages in iOS Apps at Native Speed Using NSURLProtocol