Mathew
Mathew

Reputation: 109

Unable to set project name in the "grant permissions" dialog for Google Apps Script Add-on

I have an add-on for Google Sheets that's currently being tested within my domain. For this post, let's call it My First Add On. When users install the add-on they're prompted for permissions, but it always appears as "Untitled project" in the dialog box:

Screenshot: Sign in with Google prompt

The project name is set to My First Add On everywhere I can find:

My add-on is published with 'private' visibility, available only to people in a given Google Group (my trusted testers).

I've searched through documentation and forums to see what I'm missing here, but can't find anything that covers this scenario.

This has to be something basic, but I'm completely stuck and the only support option available to me is to post here. I'd be grateful for any help, folks!

Upvotes: 10

Views: 1638

Answers (3)

Patrick
Patrick

Reputation: 31

Another reason may cause this problem: Your project name contains "Google".

Since it cannot be looked like an official application so you should avoid using "Google" in your project name, otherwise it will be displayed as "Untitled project" in the auth dialog.

Upvotes: 0

aiutopia.dev
aiutopia.dev

Reputation: 852

I renamed my project to a dummy-value like 'name' and then restored the correct project name manually (i.e. I renamed my project twice).

Afterwards my project name was showed correctly in the OAuth permission granting dialog.

(however to add honestly, I cleared my browser-cache before applying my method but deleting cache didn't solve the issue by itself)

Upvotes: 1

Brian
Brian

Reputation: 4354

I've seen something similar, where the name of the script isn't updated if you test it before saving the name (ie, create a name when prompted rather than before testing). Try clearing your cache, closing out of the tab, etc, and then launching again. I'm not sure it's something you can fix in code or listings anywhere.

Upvotes: 6

Related Questions