Android Question Google Oauth class

walterf25

Expert
Licensed User
Longtime User
Hello everyone, i just came across this google Oauth class and it fits perfectly for a project i'm working on which requires to sign in to Gmail without asking the user for a password, however i have a service running which checks every 30 seconds if there are any new emails.

My questions are the following:
can i check if the accesstoken has expired from a service?
and how do i obtain a new one?
does the app have to launch the browser to ask the user for permission every time the accesstoken expires and the app needs to get a new one?

Thanks in advance for you guy's help.

Regards,
Walter
 

DonManfred

Expert
Licensed User
Longtime User
If the token is not revoked then you should get updated token automatically.
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
If the token is not revoked then you should get updated token automatically.
That's the issue, I'm not getting a refresh token.

Regards,
Walter
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top