问题
I am completely new in Making Extension. Currently, I am trying to work with InboxSDK library to track mail. I wanted to get compose message's TheadID or MessageID but every time it's giving me error that GetmessageID() is not a function. The tries , I did till now is as per below.
InboxSDK.load(2, 'my inboxsdk id').then(function(sdk){
// the SDK has been loaded, now do something with it!
sdk.Compose.registerComposeViewHandler(function(composeView){
composeView.insertHTMLIntoBodyAtCursor('<div><img class="imgClass" src="../images/footprints.png"><div>');
console.log(composeView.getThreadID());
console.log(composeView.getMessageID());
});
});
The first console is coming blank and other one giving error whenever I open compose messagebox in gmail.PLease help me if you are aware with InboxSDK .Thank you.
来源:https://stackoverflow.com/questions/57933735/how-to-get-threadid-or-messageid-of-gmail-compose-message-with-inboxsdk