Possibilities of Fingerprint Issue in WebRTC - ios

I am testing WebRTC implementation with Apprtc demo for iOS
I am facing a issue where the fingerprint does not match in the local sdp we send.
Failed to set session description.
Error: Error Domain=RTCSDPError Code=-1 "The operation couldn’t be completed. (RTCSDPError error -1.)"
UserInfo=0x17466d480 {
error=Failed to set local answer
sdp: Failed to push down transport
description: Local fingerprint does not match identity.
Expected: sha-1 FB:05:7C:59:1A:57:A2:47:0D:E2:2A:02:D1:C6:21:F9:9B:9A:10:0E
Got: sha-1 92:1C:6B:E0:2F:CA:63:49:8C:F4:CC:C2:F4:B9:86:F5:D8:7F:56:CC}
Can you please suggest what might be the reason behind this issue or where to debug in Apprtc

Related

Error while fetching Server Playback Context when downloading Fairplay enabled videos

While Implementing Offline FPS Getting AVFoundation Error -11800
I am implementing the Offline HLS using FPS.
I have downloaded the video using AVAssetDownloadDelegate
Now For DRM content I need to fetch license so I have implemented the AVAssetResourceLoaderDelegate
Everything is working fine in AVAssetResourceLoaderDelegate, I got the CKC or License but when I execute following code
let persistentContentKeyContext = try loadingRequest.persistentContentKey(fromKeyVendorResponse: responseData, options: nil)
I get following error
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-12158), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1c084a6e0 {Error Domain=NSOSStatusErrorDomain Code=-12158 "(null)"}}
Can anyone please tell me what does this error codes means and how to resolve this error.
Unfortunately, the error response you are seeing is not very informative as you have noticed and could cover multiple failure cases.
It is typically means that the device FairPlay service cannot properly decode the CKC that your DRM server provided to the device, or else that some of the information in it is not consistent with a persistent license.
This is a problem for you to debug as the CKC that is sent back is encrypted in a way that you will not be able to read - see diagram below from Apple showing the sequence:
The best way to debug and investigate this is usually to contact the provider of your DRM server (key server in the above diagram) and see if they can investigate it on the server side and decode the response they are sending to you so you can check it matches what you are expecting and the persistent period etc is correct.

"Error Domain=com.google.iid Code=501" while registering ios devicetoken in gcm

GLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "The operation couldn’t be completed. (com.google.iid error -25300.).
Please get me out of this.
The error log message GLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 is traced often, both when receiving google token succeeds or fails. I assume this is not an actual error.
I started receiving the error Error Domain=com.google.iid Code=501 on one device. No matter how many times I retried the call to tokenWithAuthorizedEntity:scope:options:handler: it always returned 501. I tried deleting the app, I tried restarting the device with no luck. I noticed that the same code ran fine on other devices. As a final resort I reset all data and settings on the device (factory reset) and this fixed the problem for me.

Network debugging specific to network carriage

I have an iPhone application in which I have a request which works fine on wifi and with all network carriages but one carriage. On this carriage, if I use ASIHttpRequest, it gives me the below error:
ASIHTTPRequest request_didFail: Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred" UserInfo=0xd54e2f0 {NSUnderlyingError=0xd502de0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)", NSLocalizedDescription=A connection failure occurred}
If I use AFNetworking it returns below error:
NSLocalizedDescription = "Could not connect to the server.";
NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork Code=-1004 \"Could not connect to the server.\" UserInfo=0xdc98630 {NSErrorFailingURLKey=https://sitename.com, NSErrorFailingURLStringKey=https://sitename.com, NSLocalizedDescription=Could not connect to the server.}";
First of all, what could be the reason of this error assuming it only happens for a specific carrier? Second, as the request works with everything but this carriage, it seems hard to debug, so how can I debug it to find the exact problem?
Thanks
It turned out that the problem was with this specific telco. Without changing the code, it started to work again after some time.
For the answer to this question, I can say that the reason could be about some proxy thing that is made by the telco and we tried to debug it by applying different proxy tests.

Error GIMBAL iOS SDK

I use the Gimbal SDK.
When I try to create QLContextCoreConnector on my view compare this message:
[name of my app]
Powered by Gimbal Place detection
[checkbox] I accept the gimbal terms of [...]
I accept and always is ok. But after the loading, on the screen compare this message:
Sorry, Network error. Please try again later.
and in the XCode log screen this is the message that the framework run
2014-09-18 12:48:06.837 GimbalDefTest[1102:60b] Failed to initialize gimbal Error Domain=QLRestTemplateErrorDomain Code=-1001 "The request timed out." UserInfo=0x1780f7300 {NSUnderlyingError=0x178049630 "The request timed out.", NSErrorFailingURLStringKey=https://ios.api.gimbal.com/service/rest/v4/user/43021051/application, NSErrorFailingURLKey=https://ios.api.gimbal.com/service/rest/v4/user/43021051/application, NSLocalizedDescription=The request timed out.}
Someone can help me?
ps: I already check the field PRODUCTION_API_KEY in the UserContext.plist with my Gimbal API Key and they matched
The error was in the bundle id. If you want to develop an app with gimbal framework you must to set the same bundle id in the app and in the gimbal manger.

Could not determine current country code: Error Domain=GEOErrorDomain Code=-2 "The operation couldn’t be completed. (GEOErrorDomain error -2.)"

I am getting this error code when using 'MKMapView' on the iPhone 4:
Could not determine current country code: Error Domain=GEOErrorDomain Code=-2 "The operation couldn’t be completed. (GEOErrorDomain error -2.)"
The map loads fine with coordinates etc, but this gets logged.
Any ideas what is causing it?
I got this today on my iPad4-Wifi.
Reading more of the message, it stated that it had o internet connection.
Sure enough, the iPad lost connection to the wifi for some reason.
I reselected our wifi network, retried the test and it worked.

Resources