Hello,
I downloaded the project in erel's tutorial here:
Everything works nicely.
But once I try to implement it in my bigger own project the following problem happens:
My App opens the webview and I need to allow 'SpreadSheet' to send Emails. So I press 'Allow'. But instead of being redirected into the app, there is a blue bar running many times from left to right indicating the request is being processed. (This is normal, it just takes a bit longer than usual.) Unfortunatelly I am then redirected to a google search site finally.
The Email itself was not sent.
It also does not remember my choice to 'Allow' and I will be asked the same process next time.
What might be the problem here?
Thanks!
---update---
I tried to simply register the OAuth Client ID with lowercase project name. --> Later a match was not possible. (because my Project Name contains upper letters)
I renamed my project to lowercase --> it works. However this is a new app then and not an option for me, as my app is already published on Google PlayStore.
This problem is related to this problem (which was solved by changing the scheme name)
This also works for me!
I downloaded the project in erel's tutorial here:
[B4X] Sending emails with Gmail REST API
This solution is compatible with B4A, B4J and B4i. Up until now there were two ways to send emails: 1. Using the default mobile app which required the user to actually send the message (available in B4A and B4i). 2. Using SMTP from the Net library. This required the user to enter the email...
www.b4x.com
Everything works nicely.
But once I try to implement it in my bigger own project the following problem happens:
My App opens the webview and I need to allow 'SpreadSheet' to send Emails. So I press 'Allow'. But instead of being redirected into the app, there is a blue bar running many times from left to right indicating the request is being processed. (This is normal, it just takes a bit longer than usual.) Unfortunatelly I am then redirected to a google search site finally.
The Email itself was not sent.
It also does not remember my choice to 'Allow' and I will be asked the same process next time.
What might be the problem here?
Thanks!
---update---
I tried to simply register the OAuth Client ID with lowercase project name. --> Later a match was not possible. (because my Project Name contains upper letters)
I renamed my project to lowercase --> it works. However this is a new app then and not an option for me, as my app is already published on Google PlayStore.
This problem is related to this problem (which was solved by changing the scheme name)
Problem - Sending emails with Gmail REST API
Hello, my problem relates to this thread: https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736 This variant for sending eMails actually works great. But now I have got a problem, which I probably can not solve myself. I want to use this code now for my...
www.b4x.com
Last edited: