Having issues with Teams deep links on Android
I am having issues with Teams deep links on Android. It seems to us that it is an issue with the Teams application.
Additional information:
I want to start a chat with another person by using deep links. So when I click on a link, it should open a chat with a chosen user.
Links on Android are not working if the email address of the chosen user is from an external organization (different from my organization).
Links on Android are working between users of the same organization.
Links on Android are working if the contacted user is from an external organization only if a chat has previously been started.
Links on the iOS and Desktop versions are working, even if no chat has been started with the chosen user and he is on an external organization.
I tried the following two methods to initialize the chats:
if (chat.isSupported()) { const chatPromise = chat.openChat({ user: 'email@external-organisation.com' }); chatPromise .then((result) => { /Successful operation/ }) .catch((error) => { /Unsuccessful operation/ }); } else { /* handle case where capability isn't supported */ }
or:
if (app.isInitialized()) app.openLink(
[https://teams.microsoft.com/l/chat/0/0?users=email@external-organisation.com
);]("https://teams.microsoft.com/l/chat/0/0?users=email@external-organisation.com`);")
Both produce the following error message:
Am I doing something wrong or is it a Microsoft Teams bug?
Where can I report that bug?