OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
690 stars 95 forks source link

Addin/APIs failing for IOS / Android #3648

Closed glr0221 closed 2 months ago

glr0221 commented 1 year ago

Provide required information needed to triage your issue

Outlook addin works for all platforms except for Outlook on IOS and Android.

Your Environment

Expected behavior

All Outlook platforms web and clients, should make the addin run correctly.

Current behavior

Currently we have one customer where our addin is not working correctly on all mobile platforms. (IOS and Android) Browser tests and Outlook-Desktop tests are working correctly.

Steps to reproduce

Cannot create a set of reproduction tests. I can ask our customer to directly work with your team if needed.

Link to live example(s)

None

Provide additional details

None

Context

This has been going on for a while. I think there is something wrong with their configuration (probably allow/block lists) for the mobile environment.

I would like to ask assistance if there are settings in the EWS/M365 server that we need to enable to allow the use of REST APIs in Mobile outlook.

I apologize in advance if this is not the right venue for this. I just thought to file it here just in case other users are experiencing this issue as well.

Useful logs

None

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

exextoc commented 1 year ago

@glr0221 - Thank you for reaching out. Can you be more specific about "add-in not working"? Need additional info like: 1) Which api is not working as exepected? 2) What scenario are you trying to achieve with add-in? 3) Scriptlab sample for the code that is not working? 4) Outlook version of iOS/Android?

glr0221 commented 1 year ago

Thank you very much @exextoc.

My apologies for being vague. Our addin is a reporting button. When our addin is opened, users can click a button to report an email to their infosec/admins.

For one of our clients, our reporting addin works correctly for Outlook OWA, Outlook-client MAC and Outlook-client Windows. The addin loads/opens correctly and when the button is clicked, the email is reported correctly to their admins.

For the same customer however, they can open and load our addin in their mobile outlook (IOS/Android), but when they click the button, it fails during the execution of the first REST-API. This API call is the following :

https://outlook.office365.com/api/v2.0/me/messages/<MESSAGE_ID>?$select=InternetMessageHeaders

Since (1) this very same addin (code and REST-APIs) works in our customer's other outlook-clients and (2) this addin also works for mobile and non-mobile Outlook for all our other customers, my best logical hunch is that there is something in our customer's environment disallowing REST-APIs (token and execution) from executing properly.

Which api is not working as expected?

Conversely, would you know of any EXCHANGE/M365 server configuration that can effectively disable/enable EXCHANGE/REST APIs for mobile only? I really believe this is a configuration issue. But I don't have any idea what server setting can affect mobile REST/EWS usage.

exextoc commented 1 year ago

Can you please share the powerlift logs and the manifest for the add-in you are seeing the issue with.