Skip to content

NSURLSession with custom delegate (didReceiveChallenge) or custom NSURLSession #33195

@Oref

Description

@Oref

Description

For our customer we are developing an application which runs in MDM solution Mobile Iron. The app needs to connect to backend API server. To do that each request must be authorized with certificate (obtained from Mobile Iron's AppConnect library).

Is it possible to provide our custom NSURLSession or provide our custom delegate for the session?

We did't find any solutions. All we have found is how to make custom NSURLSessionConfiguration in this PR #27701, but this does not solve our problem with request authorization.

Version

0.66.0

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 11.6
CPU: (8) x64 Apple M1
Memory: 25.54 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.4 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.10 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.0 => 0.66.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

It's not a bug, it's a question about functionality. So providing steps to reproduce doesn't make sense.

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions