In order to get my hands on the Google API for iOS, I ran the GooglePlusSample.xcodeproj sample project provided by Google. Then I trimmed it, up to the level where only what I am interested in at this point is left over. Precisely my simplified version can log in and out, nothing else. That works perfectly.
When using "com.google.GooglePlusPlatformSample" for the bundle identifier (this is what is provided in the Google sample). The app starts and when I tap the "Sign in" cell, I get this:
Status: Not authenticated
which is what I expect. Then I can log in an get:
Status: Authenticated
All this is fine. But when I use "myreversedomain.myapp" for the bundle identifier (this is my own app), adjusting the Product Name accordingly in the Build Settings. The app starts as previously and when I tap the "Sign in" cell, I get this:
Status: Not authenticated
which is still what I expect. Then I try to log in. This is the time when things go wrong. Instead of getting
Status: Authenticated
as before: I find myself using the Google+ app which is installed on my device.
Since I am just starting to use the Google API in an iOS app, I may well be doing something not right. But why is this happening?
For adding Redirect URL you have to provide the Redirect URL in you Register App settings on Google Plus. Refer the following image.
Hope this will help you.