can not create Android client id - android

My apologies for asking this question on Stackoverflow, but Google says that this is my only choice. I have a support package from Google in theory, but all attempts to get a PIN yield "Invalid Operation" (a different problem).
I am just trying to use the Google web page instructions to create an Android client Id for secure access to AppEngine Endpoints.
In the following Google instructions, steps 6 and 7 point me to non-existent user choices on the Google Cloud console.
Straight from the web page:
[https://developers.google.com/appengine/docs/java/endpoints/auth#Java_Creating_OAuth_20_client_IDs]
...
Creating an Android client ID
...
Open the Google Cloud Console. [https://cloud.google.com/console]
When your project appears in the projects pulldown menu, select it to make it the active project. [Selected the project from the table of projects]
Click APIs and Auth and select Registered Apps [No such selections exist; tried all links - nothing even close to on topic.]
If your app is not yet registered, select the Register App button. [No such link exists.]
…
I hope Google is listening and can help. My apologies to everyone else. I have no other way to contact Google.

I don't understand what's the issue, as the instruction provided is correct and that's how we generated the client ID for our projects:

Related

Service account doesn't show up in Google Play Console after creation

From my Google Play console I linked a project. Then I created a service account. Still, when refreshing the console, it still says "There are no service accounts associated with your project."
Waited over 24 hours already. The purpose of all that is receipts validation.
Picture 1: a linked project:
Picture 2: service-account created:
I had the same problem, I fixed it this way:
When you create a service account in step 2, you need to select a role to grant this service account some permissions, although it shows the step is optional, but for some cases, it's not. If you skip this step, the newly created service account will not show up at the Google Play Console API access page, and you will get this error message, The current user has insufficient permissions to perform the requested operation when you run your code.
You much enable "Google Play Android Developer API" (one of Google Api & services) for your application via a credential!
Google supplies many API for developers can call them from their app. A credential same as a permit (3 types of credentials : API key (such as youtube), OAuth, Service Account)
If you never enable one API, it never shown on API Access page!
In my case:
Even if you have created a service account,
When you have already deleted the service account with the same name,
It appears to have been deleted from the IAM tab of Google Cloud Platform.
So it is assumed that it is not visible in the play console.
TODO:
Create a service account with a different name (I gave the owner permission in step2 when creating, Like Q Locker's answer.).
After creation, it was immediately exposed in the play console.
I faced the same issue because I selected a wrong project instead of the project for which the service account to be created. Please double check the project name in the drop-down at top of the page (after going to the link of Google Cloud Platform). By default the right project to be selected automatically. But if no project is selected beforehand and you are asked to select a project, then select the right project carefully. Otherwise the service account won't show up after completing the whole process.
Another thing to mention, although the project is supposed to be selected automatically, initially it didn't happen and I was given the available projects to select from. The project may appear in the recent projects, otherwise click the SELECT PROJECT link and find yourself.
Moreover when I additionally logged out and removed all the other Google accounts from the browser except the account which is used in Google Play Console. That time I was redirected to service account creation page with the correct project selected beforehand.
Make sure the project name on screen 1 and screen 2 are the same. In my case project name were different.
Screen 1: Main API Access page on Google Console
Screen 2: Google Cloud Platform page

Exception when trying to use Google Calendar API in android

I am getting exception as below:
Well, I've used or say copied same code as this shown in google doc https://developers.google.com/google-apps/calendar/quickstart/android .And I know it is the same error which is already mentioned in troubleshooting part of this doc but as mentioned in its solution, I had checked my SHA1 fingerprint and also package name and all the stuffs but still getting same error. And also I tried to google and followed each and every link the google suggested but nothing works for me so my last option was STACKOVERFLOW and so I am here. Please help if any one can. Thanks in advance.
Also I forgot to mention, it says "Unregistered Android application" it means that the OAuth2 client ID I created is not found by the app but I don't know how can I make it find my OAuth2 client ID and solve my problem.
Please make sure that:-
You enabled calendar API in google console for that project you are using, as the link provide in your response.
Also match your package name in AndroidManifest is similar to the package you mentioned in google dev console with SHA.
Try to create an Oauth client id under corresponding project in google console. Follow the steps in this link.
To create an OAuth 2.0 client ID in the console:
Go to the Cloud Platform Console.
From the projects list, select a project or create a new one.
If the API Manager page isn't already open, open the console menu and select API Manager.
On the left, click Credentials.
Click New Credentials, then select OAuth client ID.
Note: If you're unsure whether OAuth 2.0 is appropriate for your project, select Help me choose and follow the instructions to pick
the right credentials.
Select the appropriate application type for your project and enter any additional information required. Application types are described
in more detail in the following sections.
If this is your first time creating a client ID, you can also configure your consent screen by clicking Consent Screen. (The
following
procedure
explains how to set up the Consent screen.) You won't be prompted to
configure the consent screen after you do it the first time.
Click Create client ID.
Based also from this related post, you have to give permission from your calendar configuration (Calendar configuration -> Share this calendar) to the email account specified into Google Api Console (email adress).
Hope this helps!

Missing APIs & auth > Registered apps in Google cloud console / How do I obtain GCM API key?

This question is already asked here and is closed as "off - topic". I didn't see any stackexchange network sites for asking this question so I am re-asking here. I know this is very confusing problems for beginner.
I was trying to use Google cloud messaging service. I had followed the official android developer guide. I had performed all the steps as mention there but got stuck at a point where it says "In the sidebar on the left, select APIs & auth > Registered apps." I looked at left side bar but couldn't find it. Please anyone help me.
It seems that Google has not updated their documentation. In latest interface of Google Cloud Console, there is no any "Registered apps" menu under APIs and auth. You can do the same thing by selecting "Credentials" under "APIs and auth". After selecting "Credentials", click "CREATE NEW KEY" and choose the key you want to generate
For the Google Cloud Messaging, click "Server Key" and provide the list of IPs from which it accepts the request. [If you do not provide any ip, then it allows any ip but this may create security issues]
Update: Finally Google has updated its documentation.
I've just figure it out
In Google Cloud Platform when you are already inside your project, click to return on the dashboard, after you will see the section API in that section, there is a link at the bottom allowing you the see the overview of the APIs click on that link and now you can manage youra apis
The Google Cloud Console interface seems to be updated again. For latest documentation you can refer to this link.

Getting an API key to use with Google Cloud Messaging

I am developing an Android app and I'd like to start testing out push notifications. From a code perspective, I'm all set. My current challenge is that I simply do not know how to get a Google Cloud Messaging API key from Google.
There are loads and loads of tutorials and videos online showing how this can be done in about 10 seconds but Google has recently updated it's developer center and none of the tutorials seem to apply any more. The current process seems very cumbersome and not at all similar to what I've seen online.
I realize that this barely passes as a programming question (if at all) but there is no way that I'm going to even begin to be able to develop anything without an API key from Google.
Is someone able to point me in the right direction?
CommonsWare was right about three years ago (2013). This is a revision to his answer.
Note: Even if you have already enabled any services and have API keys this will still work.
Log in to Google Services with your google account. (This is not the same as the Google Console)
Click on Pick a Platform
Click on Enable services for Android
Fill out the app name and package name
Select Cloud Messaging. (Or any other service you want. You can come back to this later and add more)
Click on Generate Configuration Files
Boom. Right there on top in the Cloud Messaging card under Server API key
Also, you will want to download the google-services.json file and copy it to the app/ or mobile/ module directory in your Android project
but Google has recently updated it's developer center and none of the tutorials seem to apply any more
:: sigh ::
That's yet more work for my next book update...
The current process seems very cumbersome and not at all similar to what I've seen online.
Bearing in mind that I am already set up with keys, and therefore may be seeing somewhat different stuff than would somebody with no keys:
Step #1: Log into https://cloud.google.com/console with your Google account
Step #2: In the navigation on the left, go into "APIs & auth > APIs"
Step #3: Find "Google Cloud Messaging for Android" and click the "OFF" button next to it (note: this might involve then agreeing to additional terms of service)
Step #4: In the navigation on the left, go into "APIs & auth > Registered apps"
Step #5: Wait a really long time, apparently.
Step #6: Click the red REGISTER APP button.
Step #7: Give the app a name and choose Web Application, then click Register
Step #8: Click the "Server Key" section for your server key
Google has updated their api console recently to Google Cloud Console.
In short terms , you need to create an Android application and pick Accessing APIs via a web server. this service has a detailed guide for that
The easiest way to configure GCM API key and Sender ID, is to Google login with your account and continue the Wizard : https://developers.google.com/mobile/add :)
To get FCM (Firebase cloud messaging) key for a web app
login into Firebase
Create a new app by clicking the big 'Add Project' button
Wait a few seconds and watch the circle chase its tail
Click "Add Firebase to your web app "
Copy the api key

Adding client id to appengine backend for android

I have created a simple app-engine endpoints api. Now I need to add the client_id and audience information for the android frontend. Following the links, I ended up at Configuring Your Web App Backend to Recognize Your Android Client. But step 2.a of the instructions does not match anything on the Google API Console. After I clicked API Access, the only option I get is to Create an OAuth 2.0 client ID (so there is no Create another client ID). Beyond that point the divergence grows wider. The actual options are product name, Google account, and Product logo. So clearly I am in the wrong tab.
I imagine this is something everyone with an app-engine android app must have gone through. Will someone please help guide me?
The instructions skipped a view steps and renamed a new, but I got there eventually.

Categories

Resources