Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAttachmentContentAsync does not invoke callback on android app #645

Closed
eneoli opened this issue Jul 31, 2019 · 3 comments
Closed

getAttachmentContentAsync does not invoke callback on android app #645

eneoli opened this issue Jul 31, 2019 · 3 comments
Labels
Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@eneoli
Copy link

eneoli commented Jul 31, 2019

Expected Behavior

The passed callback should be called, like on other platforms like OWA or Outlook Desktop

Current Behavior

The callback doesn't get called using the Add in with the Outlook android app. Using the exactly same code on OWA or Desktop works perfectly.

Steps to Reproduce, or Live Example

Office.context.mailbox.item.getAttachmentContentAsync(id, () => {
console.log('callback called');
});

Tested on two android phones with Android 9

Context

Passing attachments from mail to our web app (Read mail)

Your Environment

  • Platform [PC desktop, Mac, iOS, Office Online]: Android App
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number: latest app version from Play Store
  • Operating System: Android 9
  • Browser (if using Office Online): X

Useful logs

No errors, no warnings, nothing. Seems like the callback just not gets called.

Is it possible, that the callback is not called because of Office.context.mailbox.ewsUrl not available on Android?

@kapgupt
Copy link

kapgupt commented Jul 31, 2019

@eneoli right now, Outlook mobile only support API level requirement set 1.5. So this API is not supported as of now in Outlook Mobile(Android or iOS).

@JuaneloJuanelo JuaneloJuanelo added the Needs: attention 👋 Waiting on Microsoft to provide feedback label Aug 1, 2019
@JuaneloJuanelo
Copy link

@eneoli we recommend you to check for this requirement at runtime and when supported on such platform your code will just work.

@GarryLowther
Copy link

It is not just an Android problem. Our getAttachmentContentAsync code to read attachments works perfectly in Outlook Web, but the installed Outlook throws an error: "the operation is not supported"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

4 participants