Posts

Post not yet marked as solved
4 Replies
3.3k Views
Hi everybody,I’m getting crazy on this.I made a Radio app (yes another one...) for myself since I love radio and couldn’t find one suitable to me, it works flawlessy except for the (apparently) self signed certified with https.For example I’d like to play Fox News Radio but iOS keep telling me that they use an “invalid cerficate”, the same for other radio.I searched everywhere here on SO and around the internet, this is where I arrived:- I’m using AVURLAsset with AVPlayer;- I’m using AVAssetResourceLoaderDelegate;- I set the delegate;- The func resourceLoader(_ resourceLoader: AVAssetResourceLoader,shouldWaitForResponseTo authenticationChallenge: URLAuthenticationChallenge) -> Bool is never called;In general every AVAssetResourceLoaderDelegate function is never called.Then I found this page:https://stackoverflow.com/questions/26649865/avassetresourceloaderdelegate-methods-not-working-on-device/43338772where the user Alex explains that in order to use those functions we must use a fake scheme not “https”: what’s the point behind this? Apple never says to change the schema in its documentation.Is this the correct approach to bypass the invalid certificate I find?I’ve tried changing the App Transport Security Settings even for specified domain but it doesn’t work.Any ideas, suggestion or help will be so appreciated.Thank you in advance,Fab
Posted Last updated
.