-
-
Notifications
You must be signed in to change notification settings - Fork 878
Question: how to get NSURLSessionConfiguration used by Parse #614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you're using CocoaPods (which you probably should be), you can modify Allowing an easier public method to configure the URL session would be interesting, and probably falls under the scope of #570. |
Thanks! Any thoughts? And yes, that would be great if you could add a public method to get it. |
You could go the classic method swizzling route, though that does feel very hacky at that point. You could also fork Parse, and use your own fork of parse as your 'source of truth' for all of our dependencies (e.g. It definitely doesn't help that you're trying to tightly couple the network intercepting of a separate library to that of an unrelated library... We do have |
@oferRounds, I just added some preliminary APIs for configuring URL sessions & retry attempts that we use in the SDK, in #570. Let me know what you think, and if you have any thoughts please don't hesitate to share! |
I just updated my project to use 1.12.0 release. Maybe I miss it, but I still don't see any available option to update the NSURLSessionConfiguration's protocolClasses. Thanks a lot again! |
@oferRounds We have removed that feature for the time being, as we decided that this sort of thing would be better configured by forking the SDK. I forgot to get back to you with this decision, and I apologize. (Another option would be to swizzle NSURLSessionConfiguration and add those protocols to all NSURLSessions created by the system). |
@richardjrossiii - thanks! No problem :) |
I would like set it protcolClasses, so I could monitor the netwrok request using this library here:
https://github.com/kasketis/netfox
by following this suggestion:
https://github.com/kasketis/netfox/blob/master/Workarounds.md#99
The text was updated successfully, but these errors were encountered: