InboxSDK Support for New Gmail Design

2,758 views
Skip to first unread message

Aleem Mawani

unread,
Apr 16, 2018, 5:29:00 PM4/16/18
to InboxSDK
Hi all,

As many of you have now publicly heard, there are some upcoming changes to Gmail's UI. We wanted to share how the InboxSDK will handle the new Gmail design.

First and foremost, we're committed to ensuring that any app written on using the SDK will automatically be compatible with the new Gmail UI. You will not need to change your app in any way for your app to work in the new UI. Even better, the SDK will continue to support the old UI so your app will not have to do anything special to handle a user ramp up of the new UI.

The only exception to this is if you are not using the SDK for 100% of your functionality. We highly recommend not doing this, but if you currently inject into the DOM or listen to ajax requests, your app will likely break with the new UI. We highly recommend you use the InboxSDK functionality directly as it has support for both new and old Gmail.  

Lastly, there have been some minor changes to the SDK that may affect you (they won't break your app) and you may want to take action on these:

1) Thread View Sidebars - when adding sidebars to threads using ThreadView.addSidebarContentPanel, your element is now give you the complete width of the sidebar and you should add your own padding that makes sense for your app. Previously the SDK added padding on your behalf and it wasn't adjustable. Please note that it is very possible that your element will show up in sidebars with different widths and your UI should be flexible to that. 

2) MessageView.getRecipients is deprecated - in order to solve some performance issues with the new Gmail we've had to deprecate this method. Instead you should use MessageView.getRecipientEmailAddresses to get just the email addresses of the recipients or use MessageView.getRecipientsFull to get more complete information including names (note that this method differs from the old getRecipients because it returns a promise instead). These newer methods are both documented and are available to use now. The old getRecipients is deprecated and will eventually just return email addresses only.

3) Global Sidebar - we're adding an API to add a sidebar to Gmail that isn't tied to a specific thread. Instead it can be permanently visible and is collapsible by the user if desired. This API will only work in the new Gmail. It hasn't been documented but please let us know if you're interested in trying it out.


Hope this clears up any questions you might have about the new Gmail + the SDK. 

-aleem

Ray Li

unread,
Apr 25, 2018, 4:35:09 PM4/25/18
to InboxSDK
Is there plan to have a simple endpoint that returns what version the user is currently on? We want our app's behavior to be slightly different if the user is on the new version.

We can play with the DOM ourselves but would definitely prefer inboxSDK to support this. 

Omar Ismail

unread,
Apr 25, 2018, 4:36:53 PM4/25/18
to Ray Li, InboxSDK
sdk.User.isUsingGmailMaterialUI()

will be put into the docs soon.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/22799caf-4a25-43d3-a16c-47a3a0529f10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aleem Mawani

unread,
Apr 25, 2018, 5:05:04 PM4/25/18
to Omar Ismail, Ray Li, InboxSDK
Out of curiosity - how do you want the behaviour to be different?

Lieven Janssen

unread,
Apr 25, 2018, 5:05:30 PM4/25/18
to InboxSDK
Hi Aleem,

Really interested in trying out the new Global Sidebar since Gmail started rolling out the new UI!

Let me know how I can use it.

Best Regards,

Lieven

Aleem Mawani

unread,
Apr 25, 2018, 5:06:30 PM4/25/18
to Lieven Janssen, InboxSDK
We'll be adding that to the docs shortly as well.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Ray Li

unread,
Apr 25, 2018, 5:14:26 PM4/25/18
to Aleem Mawani, lie...@salesflare.com, InboxSDK
Gmail now supports Snooze natively so we are disabling this feature for the new UX.

--
Best
Ray


You received this message because you are subscribed to a topic in the Google Groups "InboxSDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inboxsdk/rh6Y1pIASQE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inboxsdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/CADBYpymOz%2Brtq_bXodhOY8wCBqL51H8SevFfUcP%2Bg7s-Q_2dwg%40mail.gmail.com.

Aleem Mawani

unread,
Apr 25, 2018, 5:20:22 PM4/25/18
to Ray Li, Lieven Janssen, InboxSDK
got it thanks.

Lieven Janssen

unread,
Apr 25, 2018, 5:29:56 PM4/25/18
to InboxSDK
Great! Any eta on this? Please post the links to the related docs in this topic as well.

Derek B

unread,
Apr 25, 2018, 11:34:03 PM4/25/18
to InboxSDK
This is no longer correct.

addButton(buttonDescriptor) Gmailreturn type: void

Adds an icon style button to this row, placed right next to the star button.


It now adds the button to the floating hover action bar. Would love to get the default option of beside star back.

Hrishikesh Kale

unread,
Apr 27, 2018, 12:39:39 AM4/27/18
to InboxSDK
+1 for addButton old style.

Ishan Chhabra

unread,
Apr 27, 2018, 5:35:02 AM4/27/18
to InboxSDK
Aleem, 

MessageView.getRecipientsFull does not return the data of cc and bcc recipients, whereas MessageView.getRecipients did. 

Can you look into it?

Walter

unread,
Apr 27, 2018, 8:14:25 AM4/27/18
to InboxSDK
Also +1 for the addButton, thank you.

Aleem Mawani

unread,
Apr 27, 2018, 12:24:56 PM4/27/18
to Ishan Chhabra, InboxSDK
Ishan - can you start a separate thread for that bug?

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

ishan chhabra

unread,
Apr 27, 2018, 6:14:53 PM4/27/18
to Aleem Mawani, InboxSDK
Sure thing. 

Andrei Lavrenyuk

unread,
Apr 30, 2018, 5:40:56 AM4/30/18
to InboxSDK
+1 for addButton old style.

Lieven Janssen

unread,
May 2, 2018, 12:19:32 PM5/2/18
to InboxSDK
Hi is there any news on the implementation/documentation of the global sidebar?


On Monday, 16 April 2018 23:29:00 UTC+2, Aleem Mawani wrote:
Message has been deleted

SANDEEP CHIKHALE

unread,
May 3, 2018, 2:35:00 AM5/3/18
to InboxSDK


Hi - Can you give me a timeline - how soon I can use this method to check whether use is using MaterialUI or not - ?

When this code becomes ready


Aleem Mawani

unread,
May 3, 2018, 2:56:20 AM5/3/18
to chikhale.s...@gmail.com, InboxSDK
You can use it now.

On Wed, May 2, 2018 at 11:35 PM SANDEEP CHIKHALE <chikhale.s...@gmail.com> wrote:


Hi - Can you give me a timeline - how soon I can use this method to check whether use is using MaterialUI or not - ?

When this code becomes ready


--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Lieven Janssen

unread,
May 4, 2018, 12:23:59 PM5/4/18
to InboxSDK
Is it documented as well? I can't seem to find it in the docs. How can I add an app in the global sidebar of the new Gmail?

SANDEEP CHIKHALE

unread,
May 4, 2018, 2:23:40 PM5/4/18
to InboxSDK
Hi Like to raise an issue 

#1.
When I change gmail accounts by using Add Accounts buttons present in the drop down of avatar.
In second account I will get ID of earlier account from which I have logged in.


#2.
If I use the same process to log in from New Gmail to Old Gmail - Extension - 
Error come - Error logged: Error: Could not make button - VM14206 platform-implementation.js:80 

Is any body else facing this same issue


bed...@contextsmith.com

unread,
May 5, 2018, 1:09:14 PM5/5/18
to InboxSDK
+1 for  Global Sidebar 
*Very* interested in that.
Thank you!

And thanks for staying on top of the GMail changes.

Omar Ismail

unread,
May 7, 2018, 10:56:15 PM5/7/18
to bed...@contextsmith.com, InboxSDK
Documentation updates are now available.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

st...@ioet.com

unread,
May 14, 2018, 5:32:17 PM5/14/18
to InboxSDK
Hi Aleem, 

I would like information how to implement Global sidebar.

Omar Ismail

unread,
May 14, 2018, 5:33:45 PM5/14/18
to st...@ioet.com, InboxSDK
The docs are available here: https://www.inboxsdk.com/docs/#Global

On Mon, May 14, 2018 at 2:32 PM <st...@ioet.com> wrote:
Hi Aleem, 

I would like information how to implement Global sidebar.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Srijan Dubey

unread,
Jul 9, 2018, 5:05:32 AM7/9/18
to InboxSDK
Hi,

I am getting an error while fetching the thread ID in case of new Gmail UI. It was working fine before, getting this error since today morning. It's saying 

Error: syncThread not found. and
Should not happen: ThreadRowViewDriver never became ready 

I have attached screenshot of the error. Here's my code

var b = composeView.on('sent', async (params) => {
    msgId = await params.getMessageID().then(res1 => {return res1; });
    threadId = await params.getThreadID().then(res2 => { return res2; });
         // Perform action using threadId and msgId
});

Please help.
Screen Shot 2018-07-09 at 1.07.10 PM.png

Alexander Zhadko

unread,
Jul 9, 2018, 8:08:56 AM7/9/18
to InboxSDK
I have the same error today.

Errors in the console appear after creation Compose window.
In the old UI there are no errors.

понедельник, 9 июля 2018 г., 12:05:32 UTC+3 пользователь Srijan Dubey написал:

Aleem Mawani

unread,
Jul 9, 2018, 10:39:36 AM7/9/18
to Alexander Zhadko, InboxSDK
We're working on a fix for this issue. 


--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Chris Cowan

unread,
Jul 9, 2018, 8:00:55 PM7/9/18
to InboxSDK
The issue is fixed as of two hours ago.


On Monday, July 9, 2018 at 7:39:36 AM UTC-7, Aleem Mawani wrote:
We're working on a fix for this issue. 
On Mon, Jul 9, 2018, 5:08 AM Alexander Zhadko <alexz...@gmail.com> wrote:
I have the same error today.

Errors in the console appear after creation Compose window.
In the old UI there are no errors.

понедельник, 9 июля 2018 г., 12:05:32 UTC+3 пользователь Srijan Dubey написал:
Hi,

I am getting an error while fetching the thread ID in case of new Gmail UI. It was working fine before, getting this error since today morning. It's saying 

Error: syncThread not found. and
Should not happen: ThreadRowViewDriver never became ready 

I have attached screenshot of the error. Here's my code

var b = composeView.on('sent', async (params) => {
    msgId = await params.getMessageID().then(res1 => {return res1; });
    threadId = await params.getThreadID().then(res2 => { return res2; });
         // Perform action using threadId and msgId
});

Please help.

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages