Android Question Gmail Rest API

Ugochi Adenols

Member
Licensed User
Hello

I developed a medical app to enable user send health reports to four different people using Gmail Rest API. When the mail is sent, it redirects to permission page. when the permission page was clicked, it redirects back to Google website not the app and the mail does not send.
What do I do?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Sounds like you did not setup it correctly?

Based on the infos you provided (nearly zero) it is hard do answer/help.

I just tried the gmail rest api example. I configured a new client in the google console, i added gmail api to this client, i ran the example.
It opens the permission website from google, i accepted access, the website closed and i got back to my app. The mail ist then send.

Go to Google developer console, create a new project if needed and add a client id:
Add a ANDROID Client. Setup your packagename in the setup and also set your sha1.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Hard to help with the info you provide!

If it does not redirect to your app then you probably used the wrong client type in the google console. Did you added a Android client and also added your SHA1 and the correct packagename to this?

You dont need to create a new project but it is mandatory that you create a new OAuth2 Android Client in the console for your project.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top