Error GIMBAL iOS SDK - ios

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.

Related

Error Domain=NSURLErrorDomain Code=-1004 instead of -1009 in Swift service calls

Generally, while performing GET or POST calls in iOS using dataTaskWithRequest or sendAsynchronousRequest we use to face network related errors with error codes like,
NSURLErrorNotConnectedToInternet = -1009
NSURLErrorCannotConnectToHost = -1004
NSURLErrorTimedOut = -1001
In my case i'm disconnecting the internet and performing service calls. So, the expected error code is "NSURLErrorNotConnectedToInternet = -1009". But, its throwing "NSURLErrorCannotConnectToHost = -1004" like below,
Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the
server." UserInfo=0x1700f0e00 {NSUnderlyingError=0x170255e70 "The
operation couldn’t be completed. (kCFErrorDomainCFNetwork error
-1004.)", NSErrorFailingURLStringKey=https://example.com/reg,
NSErrorFailingURLKey=https://example.com/reg, _kCFStreamErrorDomainKey=1,
_kCFStreamErrorCodeKey=51, NSLocalizedDescription=Could not connect to the server.}
So, how to get the exact error status while using dataTaskWithRequest or sendAsynchronousRequest.
As a rule, IIRC, the OS sends "not connected to Internet" only in two situations:
The network is determined to be nonfunctional after:
One or more URL requests fail and
The OS tries to probe a well-known captive-portal-detection URL and
That request also fails
No interface has an IP address
Including any connected VPNs
Excluding loopback interface
Up until the system reaches that state, the failures you see will be "cannot connect to host", because that's all the OS knows for certain.
As a rule, your app should interpret these in the same way — by using reachability to determine when to try again, then trying again when reachability changes.

Possibilities of Fingerprint Issue in WebRTC

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

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.

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.

Error after calling endTurnWithNextParticipant on a GKTurnBasedMatch in iOS using game center

I corrected the leaderboard id in the new update of my iOS turn based game and now I'm getting this, has anyone seen this before?
This is right after submitting my turn data by calling endTurnWithNextParticipant.
It seems the server also can't match players against each other anymore but invites work fine.
Everything works fine in the simulator but not on the device.
Even with the error the data gets submitted and the other player sees it and can play the entire game to the end but this error gets logged with every turn:
Error Domain=GKErrorDomain Code=3 "The requested operation could not
be completed due to an error communicating with the server."
UserInfo=0xee64400 {NSUnderlyingError=0xee51590 "The operation
couldn’t be completed. status = 5001, Missing versions for adamId:
123456789 from bundleVersion: 1.4 adamId: 123456789 game: Tic Tac Toe
Unlimited Free compatGames:null", NSLocalizedDescription=The requested
operation could not be completed due to an error communicating with
the server.}
Any ideas?
Thanks

Resources