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
670 stars 96 forks source link

Testing add-in on mobile #4148

Closed noamshark closed 7 months ago

noamshark commented 7 months ago

We have checked the box to make our add-in available on iOS and Android, but every time we publish it, the certification team sends it back to us for fixes. The problem is that we can't test it on mobile before publishing, so we're unsure how to resolve the issues. How can we see and test our add-in on mobile before publishing it?

manuelsidler commented 7 months ago

You can sideload your add-in on mobile platforms:

noamshark commented 7 months ago

Thank you, the. issue is that we don't see the add-in icon in our mobile. When I click on Add-ins I don't see ours to add on mobile. I do see it on my Outlook web and desktop. @manuelsidler

manuelsidler commented 7 months ago

@noamshark did you add MobileFormFactor and the MobileMessageReadCommandSurface extension point to your manifest? Have you set a default min version of the Mailbox requirement set <= 1.5?

noamshark commented 7 months ago

Actually our add-in should show on compose and not reading mode. do you know anything about that? @manuelsidler

noamshark commented 7 months ago

As per your comment, yes we did add that. @manuelsidler

manuelsidler commented 7 months ago

@noamshark Only read mode and some exceptions are supported on mobile platforms:

In general, only Message Read mode is supported at this time. That means MobileMessageReadCommandSurface is the only ExtensionPoint you should declare in the mobile section of your manifest.

Source: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/outlook-mobile-addins#whats-different-on-mobile

besiler commented 7 months ago

Closing this issue with the doc link provided by @manuelsidler. Thank you!

@noamshark please let us know if you have other questions. You can also request support for your use case in mobile using the feature request here: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform