Inbox SDK not working in New Gmail Window

812 views
Skip to first unread message

Shashi kiran

unread,
Jul 13, 2017, 8:28:21 AM7/13/17
to InboxSDK
Hi,

I am using inboxSDK to develop chrome extension and I am adding custom button in compose window.
But the same button is not getting added in the replay window when we open an existing email in new window & it is giving below error message.


Open Existing Email in New Window

Error in New Window



NOTE: 
Also i had tried the sample app available in inboxsdk and it is adding button in compose window.
But the same button is not getting added in the replay window when we open the existing email in new gmail window.

Please let me know if some had fixed the issue.

Thanks in Advance,
Shashikiran
Email: shash...@gmail.com

Shashi kiran

unread,
Sep 21, 2017, 7:11:28 AM9/21/17
to InboxSDK
Hi All,

I think with with recent inboxsdk release the button is getting added in the replay window and at the toolbar when we open an existing email in a new gmail window.

But "sent" event not getting fired once you send the email. so i had registered as shown below,

sdk.Compose.registerComposeViewHandler(function(composeView) {

    composeView.on('sent', function(event) {
        // message sent successfully
        console.log("Message sent successfully.");
    });

});

Could you please let me know if someone if facing same issue and any tweaks are available for the same.
Thanks in Advance.


Regards,
Shashikiran

SANDEEP CHIKHALE

unread,
Feb 14, 2018, 6:33:49 AM2/14/18
to InboxSDK
Hello Shahsi Kiran, 

Facing the same issue - Did you find any solution - Can you provide me any with some insight - how you sole that situation.
Thanks
Message has been deleted

bjo...@cirruspath.com

unread,
Mar 16, 2018, 12:22:35 AM3/16/18
to InboxSDK
Hi Shahsi Kiran. I've also found that the composeView.on('sent') is not called when the compose window is popped out in full screen. Did you ever get this working?

- From the compose window hold down shift when clicking the full screen button. (see shift-click.png)
- Compose your message and click send
- Observe the sent event is ever triggered
shift-click.png

bjo...@cirruspath.com

unread,
Mar 16, 2018, 11:03:26 AM3/16/18
to InboxSDK
sdk.Compose.registerComposeViewHandler(composeView => {
    composeView.on('presending', event => {
        console.log('*** presending', event);
    });
    composeView.on('sending', () => {
        console.log('*** sending');
    });
    composeView.on('sent', event => {
        console.log('*** sent');
    });
});

Debugging the other events on the composeView I can see only the presending event is fired. Both sending and sent are not triggered when sending an email in full screen pop-out mode.

After further testing it seems that the XHR request that gmail makes is done in the parent window and not the new window with the popout compose window. My understanding is that InboxSDK intercepts the XHR requests to know when a message is being sent. If the XHR requests are happening in the parent window then my JS code in the popout is not going to know about the sent message.
parent-window.png

bjo...@cirruspath.com

unread,
Mar 16, 2018, 5:18:30 PM3/16/18
to InboxSDK
The same is also happening for registerThreadViewHandler and registerMessageViewHandler. The XHR requests are happening in the parent window so the events are not fired in the pop out window. 

If I have any logic on when the threadView viewState changes this is not trigger in the pop out window.
Reply all
Reply to author
Forward
0 new messages