-1 | I am trying to use GTLRservice and the associated queries generated by Service Generator in my iOS application. I have generated an API key for IOS, and set it to the service objects "service.APIkey" field. I have set my bundle identifier for the key (in Google Cloud Console) to the same one I am using in my XCode project. I have also created a client ID and set the bundle identifier in cloud console. When trying to access cloud endpoints from my iOS app, i get this error: 403 Requests from this ios client application are blocked. It seems that GTLRservice doesn't have access to my bundle identifier for some reason? Also, do I need to set the Client ID inside of my xcode project? I have used endpoints in the past (before endpoints 2.0 frameworks), and there was no need to go through oauth2 authentication or provide an API key. I can access my api in .../_ah/api/explorer, so I know it's working partially at least. How do I get it to work in iOS correctly? Below is example code. To reiterate, I have created on Google Cloud Console: API key for iOS using my bundle identifier Client ID for iOS using my bundle identifier The error it gives me is: Here is from my endpoints api on python app engine: Thanks, please let me know what I am missing. This is not well documented. Am I required to log in with Oauth2 in my app? Is there a way to log in with the service account behind the scenes so I don't have to prompt the user to log in with Oauth2? |