GoogleApiClient is throwing “GoogleApiClient is not connected yet” AFTER onConnected function getting called

I just noticed that you are creating the googleApiClient in onStartCommand(). This seems like a bad idea. Let’s say that your service gets triggered twice. Two googleApiClient objects will get created, but you’ll only have reference to one. If the one whose reference you don’t have executes its callback to onConnected(), you will be connected … Read more

Failed sending mail through google api with javascript

After days i had found the answer by my own. The problem was that the ‘message’ in the body only can be used when you send an attachment in the email. If you have no attachment the query looks like I wrote down here var mail= base64EncodedEmail; console.log(mail); var request = gapi.client.gmail.users.messages.send({ ‘userId’: “me”, ‘resource’: … Read more

Error: ‘The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.’

I understand you. Google confuses you with changing service names and workflows. Their documents aren’t updated enough to match their newest API workflows. I was using the Google Play Developer Service API v2 on the server-side with an alpha-version APK, and had the same error as you: “The project id used to call the Google … Read more