Publish a Gmail Add-on - gmail-addons

I'm planning to launch a simple Gmail Add-on. I've followed every step in
the publishing guide and filled the submission form. However, it's been
two weeks now and I've yet to receive any response.
Also, the guide seems wrong, because it instructs users to first fill in
the Marketplace SDK Configuration tab and there is no way to save that
information because the 'Save changes' button is disabled. The changes on
that page are lost once i close the browser. All i can do is fill the submission form. That part is very confusing.
Can anyone please tell me how much time does it take for my submission to be
reviewed? Or what are the steps to publish a public Gmail Add-on...? The ones in the guide don't seem to work.

Related

How to properly debug WebApps deployed in google scripts?

I have some experience debugging with google app scripts, but I have encountered myself with this problem since I deployed my first WebApp and haven't been able to find a way to solve it.
The webapp can be accessed by anyone who has the link in order to fill a tiny form, and the information is saved on a google sheets file. The thing is, that after the form is filled out it should redirect you to "Page 1" or "Page 2" depending on one of the answers. The main problem is that when the user is redirected to "Page 1" there is no problem, but when the redirection is supposed to be made to "page 2" takes a lot of time and sometimes it just does not do it.
The thing is when I test the page as a common user with my google account logged in (the owner's account of the deployment) , I am able to see details about the errors on the app scripts panel, but when any other user enters the webApp I am not able to see further details about the errors on the app scripts panel. I have some code lines such as:
console.log('Entered 1st step successfully');
to keep track of my process, these logs are indeed registered when I use the WebApp with my google account logged in, but they are not made when the webApp is accessed by any other user, and there are some errors that I just havenĀ“t been able to reproduce, thus corrected them.
Does anyone know how could I properly get the errors information when the users use the WebApp?
I attach an image of the google apps scripts panel which I am referring to.
App scripts panel view
Instead of console.log (which executed on the browser and routes the output to the user running the app), use the Logger class so they show up on the Execution Transcripts on the Google platform.
Hope this helps!

Issue in Web App publishing in Google Marketplace

I published my Apps Script Web App to the Google Apps Marketplace. After 5-7 days of reviewing, they shared a doc with Web App details with me and asked for a Test Account to test the App. But when I checked in console.cloud.google.com, it shows the Publish status as 'Unpublished (Rejected)'. Can't understand if the App has been rejected or still in 'under review'. Should I share the Test account details and wait or something else can be done? Any help is appreciated. Thanks in advance.
When the App needs updates, or if they need more information Google's Review team sets the status to Rejected. This allows you to make changes, or submit further information that they need. When the status is "under review" you are unable to submit the proper changes. It is strange but I would just submit the information and usually after all the changes are made or all the information is gathered they ask you to resubmit the App for review so they can click authorize.

Google Script ~ How to automate authorization for app?

I've made an app in Google Apps Script to use in an iframe on my site. Problem is I have to go through a bunch of steps every time someone new wants to use the app.
My goal:
What I would like to do is automate the app so it just approves anyone who authorizes it when they're initially prompted. Given that the users initial confirmation is the important part, I don't see why it would be a problem to just have the app allow them in, without them having to wait for me to confirm their confirmation.
The Breakdown:
The permissions settings for the app are as follows:
"Execute the app as:" = "User accessing the web app"
"Who has access to the app:" = "Anyone"
The user must obviously have a Google account to use this app, and they have to authorize the app before they can use it. When they do, an email gets sent to me, I have to find it, open it, and click the "Open sharing settings" link which opens the apps script file, then click "send" on the popup just to allow that one person to use the app.
Many people will be requesting authorization, and I don't want to have to check my gmail every day and manually confirm 5 or 10 new authorizations. That's way too much for me, and too much of a pain for the people using it. Despite having put almost a year into coding this thing, I'd rather not deploy it than bother with that. Yea, I definitely should've scoped this out better before coding the bulk of it.
Potential Solution:
This is a relatively naive guess, but would it work for me to make a second app that runs on a schedule, and opens the initial app's script file in an iframe, using sandbox="allow-same-origin allow-popus" attribute, then maybe use javascript to toggle "send" on the "share with others" pop-up?

HTML where a new website is launched after successful log in

At work we are having issues with the log in credentials. We use SAP BI and for some reason when logging into the main site, everything works, but when logging into the OpenDoc feature of the site, the credentials do not carry over. The guys are working to fix the credential issues; in the meantime I'm trying to come up with an HTML script workaround that can, after logging into the first site, automatically redirect to the other site. I'm really new to HTML so any help would be appreciated.
This is all I have so far (close to nothing):
window.open("https://login_site.php");
here, after the user inputs the username and password, I want to trigger
the initiation of the second web address. I'm interested on having the
second scripts triggering only after pressing enter, or clicking "Log On"
without closing the first webpage, otherwise the credentials will be lost-->
window.open("https://redirected_site");
Thank you in advance.

GAS: This application was created by another user, not by Google

I have made a script that is running as a 'Apps Script Gadget' in Google Sites. The script has access to my email and calender etc. because I need notifications if someone has used my script.
When I go to the site as "noname" user I get the message "This application was created by another user, not by Google. This application has access to the following personal information: email address." How do I get rid of this, the user is not interested if the script sends me a email or not.
Thank you for any advises.
Same thing happened to me; I commented out all references to the Session object but I still got the popup message.
When I removed the commented code entirely and re-published, everything worked fine. The message about access to the email info was gone.
I guess the google code holds onto an internal library reference even if there is commented code. Does not make much sense to me. But hope this helps.
If your script is not reliant on any of the users' information, I would suggest when deploying the web app to "Execute the app as" me. In the Publish > Deploy As Web App... pop-up, there's a dropdown for this.