Firstly
I noticed a question Office add-in for Word desktop only, which is very helpful.
And I found these code can distinguish the hosts:
if (Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.WordWebApp) {
// App running on the web
} if (Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.WordDocument) {
// App running in desktop
}
Secondly
From that answer, I know that I can't make add-in available only for Desktop version via manifest.
But when I submitted in https://sellerdashboard.microsoft.com, it said the add-in must support these platforms:
- Word 2016 or later
- Word Online
- Word 2016 for Mac
- Word for iPad
Thirdly
I don't need to support Word online. In the past few validations, there're always questions in Word online. Somehow I don't know the reason. And Word online (or one drive) page can not be opened well in my area (loading and loading and loading ...).
Finally
I want to know if I only shows a not supported
page in Word online, will it pass the validation? Or I will get this again? Any advice?
Your app or add-in must be fully functional with the supported operating systems, browsers, and devices for Office 2013, Office 2016, SharePoint 2013, and Office 365.
Edit
OK, in consideration of the comments, I must edit this question.
The last validation said that:
We encountered an error in Word Online, when using your add-in in Internet Explorer 11 (Version: 11.0.9600) on Windows 7. We encountered the following “This page can’t be displayed” error after clicking login with the provided credential.
But we cannot open Word Online via IE11 on Windows 7 (or 10) because the above reasons. Therefor I cannot address where the bug is. So we decided not to support online. And shows a page shows that We are not support Word Online
when the add-in opened in Word online.
Is that OK? What I can do to fix this?
Thanks for the comments.