API key strange behaviour - ios

We have application in AppStore with Googla Maps iOS SDK. Everything worked fine but couple of days ago maps stopped loading and I can see these errors in logs:
2015-11-12 16:06:44.476 AppNAME[30186:18560579] Google Maps SDK for iOS version: 1.10.20339.0
2015-11-12 16:06:44.476 AppNAME[30186:18560579] New version of Google Maps SDK for iOS available: 1.10.21020.0
2015-11-12 16:06:44.485 AppNAME[30186:18560579] ClientParametersRequest failed, 3 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<CFData 0x7c149760 [0x4dcc098]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-11-12 16:06:44.683 AppNAME[30186:18560579] ClientParametersRequest failed, 2 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "(null)" UserInfo={data=<CFData 0x7c60ecf0 [0x4dcc098]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
I can fix it with new key, but I have to redeploy app. Is there any way to make it working again?

Related

HTTP2 NSPOSIXErrorDomain Code=100 "Protocol error”

Error Domain=NSPOSIXErrorDomain Code=100 "Protocol error"
UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask
<3EEC44C3-80A3-47B1-A0FD-C5DAD842FAAE>.<2>,
_kCFStreamErrorDomainKey=1, NSErrorPeerAddressKey={length = 16, capacity = 16, bytes =
0x100201bb34d5b9460000000000000000}
I recently switched my server and when I try to get a response am getting this error. I tried changing the header but it didn't work for me. It is working fine when I tried in postman and android

NSURLRequest dataTask is returning NSPOSIXErrorDomain, "Protocol error" in iOS 9.3

I am trying to retrieve PDF content from URL which also has authentication challenge. After returning completionHandler with user credentials to URLAuthenticationChallengedelegate method, I am finally getting below error. This happens only in iOS 9.x versions, but works fine in iOS 10.x.
Error Domain=NSPOSIXErrorDomain Code=100 "Protocol error" UserInfo={NSErrorPeerAddressKey=<CFData 0x7fae60e1e340 [0x1133aaa40]>{length = 16, capacity = 16, bytes = 0x100201bbb818161f0000000000000000}, _kCFStreamErrorCodeKey=100, _kCFStreamErrorDomainKey=1}
I also tried adding NSAppTransportSecurity settings NSTemporaryExceptionMinimumTLSVersion TLSv1.1 to the info.plist and tried to set HeaderField's, but no use.

I have been facing some issue during implementing google map in ios

2015-08-14 16:30:00.533 TryMapMe[3206:96691] Google Maps SDK for iOS (M4B) version: 1.10.17867.0
2015-08-14 16:30:01.342 TryMapMe[3206:96691] ClientParametersRequest failed, 3 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7fb2eb78a800 {data=<CFData 0x7fb2eb7808a0 [0x10faa2180]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-08-14 16:30:01.449 TryMapMe[3206:96691] ClientParametersRequest failed, 2 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7fb2eb642ce0 {data=<CFData 0x7fb2eb635a50 [0x10faa2180]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-08-14 16:30:05.651 TryMapMe[3206:96691] ClientParametersRequest failed, 1 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7fb2eb6759c0 {data=<CFData 0x7fb2eb652590 [0x10faa2180]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-08-14 16:30:14.552 TryMapMe[3206:96691] ClientParametersRequest failed, 0 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7fb2eb5284d0 {data=<CFData 0x7fb2eb7a63f0 [0x10faa2180]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-08-14 16:30:14.553 TryMapMe[3206:96691] Google Maps SDK for iOS (M4B) cannot connect or validate APIKey: Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7fb2eb5284d0 {data=<CFData 0x7fb2eb7a63f0 [0x10faa2180]>{length = 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}}
2015-08-14 16:30:14.553 TryMapMe[3206:96691] Your key may be invalid for your bundle ID: com.abc.com
I got my api key generated in every way but i m getting those mentioned error and map view is empty
I got my map working.It is working fine so far

catching Google Maps iOS API key not working exception

Is there a way to get notified inside the app when you provide a wrong key to googlemaps and get this error :
ClientParametersRequest failed, 3 attempts remaining (0 vs 5). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed. (com.google.HTTPStatus error 400.)" UserInfo=0x1818bf40 {data={length = 145, capacity = 256, bytes = ...}}

Can't run RealTimeRoom Google-Play-Games iOS ButtonClicker2000 sample on real device

I'm trying to run Google-Play-Games iOS sample ButtonClicker2000 project on Real Device.
(quickstart: https://developers.google.com/games/services/ios/quickstart downloads: https://developers.google.com/games/services/downloads/)
The process of signing in to GooglePlayService does not show any
error.
I'm sure that my google console project setted up correctly.
I don't have any problem when launching on emulator
BUT on a real device (it doesn't matter on iphone or ipad) when i click on quick match button i get this error (at the bottom):
INFO: Auth operation started: SIGN IN
NFO: Auth operation SIGN IN finished with status VALID
ERROR: Attempting to get name of an invalid Player
ERROR: Attempting to get avatar URL of an invalid Player
ERROR: Attempting to get id of an invalid Player
ERROR: Attempting to get title of an invalid Player
ERROR: Attempting to get current xp of an invalid Player
ERROR: Attempting to get last level up timestamp of an invalid Player
ERROR: Attempting to get current level of an invalid Player
ERROR: Attempting to get level number of an invalid PlayerLevel
ERROR: Attempting to get minimum xp of an invalid PlayerLevel
ERROR: Attempting to get maximum xp of an invalid PlayerLevel
ERROR: Attempting to get next level of an invalid Player<br/>
ERROR: Attempting to get level number of an invalid PlayerLevel
ERROR: Attempting to get minimum xp of an invalid PlayerLevel
ERROR: Attempting to get maximum xp of an invalid PlayerLevel
[Core] (Error) __49-[GPGService executeOperation:completionHandler:]_block_invoke:[main] Server Operation Failed [appstate.states.list]
Error: The operation couldn’t be completed. (Insufficient Permission)
Error Full: Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Insufficient Permission)" UserInfo=0x1758e420 {error=Insufficient Permission, GTLStructuredError=GTLErrorObject 0x175b2e00: {message:"Insufficient Permission" code:403 data:[1]}, NSLocalizedFailureReason=(Insufficient Permission)}
GooglePlayGames finished signing in!
VERBOSE: Automatically seeded snapshot cache.
VERBOSE: Automatically seeded achievement cache.
VERBOSE: Automatically seeded event cache.
Showing a RTRVC with max players of 4
Unbalanced calls to begin/end appearance transitions for <GPGLauncherWindowRootViewController: 0x176cb3c0>.
**INFO: Connect with retry.getRetryAuthToken(): 1
INFO: Token expired. Refreshing.
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: condition_variable::timed wait: mutex not locked: Operation not permitted**
How can i fix this bug? Any help is really appreciated
Eventually i've found working solution for this issue. I don't know when exactly but google's guys added "objective c" headers for C++ SDK. These headers are kind of bindings for C++. So the C++ SDK became drag-and-dropable.

Resources