PBRequester failed with Error in iOS app
ios, nsurlerrordomain, pbrequester
Solution
I had the same issue. I integrated the parse.com framework into my app.
- (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
// Store the deviceToken in the current installation and save it to Parse.
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
[currentInstallation setDeviceTokenFromData:deviceToken];
[currentInstallation saveInBackground];
}
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo {
[PFPush handlePush:userInfo];
}
After I moved this two code block from the AppDelegate into my main ViewController file the error message was gone... Maybe it helps you...
Problem
I am facing some strange problem in my iOS app. When my app is open and the user presses the sleep/wake button, app calls ``` applicationWillResignActive applicationDidEnterBackground ``` When user right swipe to unlock the screen , app calls ``` applicationWillEnterForeground applicationDidBecomeActive ``` After that, it prints the following error in console: ``` PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x1cdfbc00 {NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=A server with the specified hostname could not be found., NSUnderlyingError=0x1cddca10 "A server with the specified hostname could not be found."} ``` I know this error is stating that the specified host name was not found. But which host name? Is it https://gsp10-ssl.apple.com/use or the hostname which I am using for web services? How can I debug this error, and identify its origin?