Microsoft Teams tasks.submitTask does not work on IOS

Viewed 198

We have a published app in the Teams App Store.

We have implemented BarCode scanner feature in the task module and it is working fine. However when code is scanned we want to close the task module right away by executing microsoftTeams.tasks.submitTask();

This method is working great on Android and it closes the task module window, but it does not work on IOS. On IOS we are receiving this error:

This call is not allowed in the 'content' context.

We have also tried to add parameters result and appIds but it didn't help.

IOS app version:

Microsoft Teams
Version: 3.16.0
Build: 3.16.77.2021163502/1004 (general)
Calling Version: 2021.34.01.8
Release Branch: 2021Sep-T1

Any help would be appreciated.

1 Answers

I also ran into this issue. To fix it, I downgraded @microsoft/teams-js from 1.11 to 1.10 and the modal began working as expected in iOS.

Related