Google Custom Search is returning this 403 error from my iPhone 7.1 app. This is the response when run in the simulator:
{ \"error\": { \"errors\": [
It was missing the header field X-Ios-Bundle-Identifier.
NSString *bundleID = @"com.yourCompany.yourApp"; //...define request as above [request setHTTPMethod:@"GET"]; [request setValue:bundleID forHTTPHeaderField:@"X-Ios-Bundle-Identifier"];