tab
10 TopicsStoring persistent data associated to Teams user
I am developing a Teams Tab App where the user needs to authenticate using an external API which sends back a token. As the tab is reloaded everytime it is exited and entered again, the user would need to authenticate again. I would like to store this token somewhere. localStorage is an option, but it would be even better if I could store this token in some kind of storage associated to the Teams user using the app, so, for example, it does not need to relogin when switching from Team in web to Team standalone app. For this, and for other use cases, I would like to know whether it is possible to store data associated to the Teams account that is using the app, so it can be later retrieved (something like a localStorage but associated to the account). I have already had a look at this thread https://techcommunity.microsoft.com/t5/teams-developer/is-there-a-way-to-store-retrieve-persistent-data-in-teams-tab/m-p/1544749#M1549 but I don't see how getContext (as the answer says) can help me with my task. An explanation on this if it's possible will also help. Thank you2.7KViews0likes5CommentsTabs Running in Background
Hello, As I am aware (and please correct my if I'm wrong), the tabs from the tab Apps in Teams stop "executing" when you switch tab (as if you closed the tab in a browser), and reload when you switch back to them. For an App that we are making, it would be useful if there was any possibility of running a tab in the background, like when you have a tab opened in your browser. Therefore I would like to know whether any of the following is possible: Keep a tab running in background, as explained before Allow a popup window/tab/whatever that keeps some task running in the background while the user explores other tabs/apps inside Team Thank youSolved1.9KViews0likes1CommentURL to Organisation tab of particular person
Hello, is there any way how to open Teams on Organisation tab in chat? I can easily open chat with any person: <a href="MSTeams:/l/chat/0/0?users=username@domain.cz">Chat</a> But I can't find a way how to jump directly to tab Organisation in chat. Any ideas please? ThanksSolved3.3KViews0likes4CommentsIs it possible to create a popup window from MS Teams Tab application?
Hi everyone! We are developing an MS-Teams application in the form of tabs. We are exploring the possibility of bringing the feature for the calls to go through WebRTC. We have our own sdk and Web gateway for audio and video calls. The requirements for the desktop client solution are as follows: To allow users place audio, video calls within MS Teams app through WebRTC. To keep the call "up" even if the user navigates to the different MS Teams tab (like Calendar or chat). To create a call interface that is as similar as possible to the MSTeams call interface. To use the same media (mic & camera) settings an user has configured in MS Teams (settings -> Devices section). What we have achieved so far: Get the microphone & camera permissions and access the media devices. Place a call using our SDK with WebRTC. (In main Tab window) Get the incoming call and accept / drop it. (In main Tab window) What we struggle with: To avoid ending the call when the user navigates to another page in MS Teams, we want to create a new window for the call interface when the call starts. Since the window.open is not allowed in Tabs (https://github.com/OfficeDev/microsoft-teams-library-js/issues/171) - we have tried to use microsoftTeams.authentication.authenticate or microsoftTeams.tasks.startTask. Unfortunately, these options do not meet our requirements: With microsoftTeams.authentication.authenticate, the child "authentication" window closes as soon as the user closes the main tab window. With microsoftTeams.tasks.startTask, the tasks iframe window is placed above tab main window. We also aware about the MS Teams "Pop out app" feature. But we didn't find a way to trigger it programmatically from the Tab app. In addition, in the "pop-out" mode, the navigation bar with Tabs About links is available and this is not what we are looking for. Could you please help us with determining our options / capabilities regarding creating a separate window from MS Teams Tab app? Is there any option to trigger "Pop out app" action programmatically, hiding the tabs links? Has anything changed in the MSTeams infrastructure since the response to this issue https://github.com/OfficeDev/microsoft-teams-library-js/issues/171? Could you please confirm that our requirements currently not achievable with MS Teams? Thanks in advance.5.3KViews0likes2Comments[Question] Notification and keep personal app state
Hi everyone, I'm starting to build personal tab app. What I wanted to achieve is to have the app a notification. Here's a scenario, I open the application on the left side navigation and do some operation, then I switch other app like chat. If something happened to the application the application will show a notification similar to activity feeds. Then, I'll open it again but the application should not be reloaded or refresh. So basically does the microsoft custom apps offers the personal tab app to remain its state(without refreshing/reloading) when switching between application, and have notifications similar to notification new feeds? If possible, I also wanted to have control about the visibility of the notification inside the application, for instance, even though the application is already open I want the notification to remain visible. Is the above functionality possible? Please let me know. Thank you.2.4KViews0likes4CommentsmicrosoftTeams.authentication.authenticate does not close popup, neither success nor failure message
I am using microsoftTeams.authentication.authenticate way of authentication, with popup 1. everything is fine and popup appears with sepcified URL 2. authentication is completed and it returns to my redirect URL with url parameters after I am calling microsoftTeams.authentication.notifySuccess('message'); but popup remains opened and doing nothing. am I need to do something to manually close popup or it should close automatically? popup function export const requestConsent = (res) => { return new Promise((resolve, reject) => { microsoftTeams.authentication.authenticate({ url: res, width: 600, height: 535, successCallback: function (result) { resolve(result) }, failureCallback: function (reason) { if (typeof reason === 'string') { reject(reason) }; } }); }); } callng function requestConsent(resLocal) .then((result) => { dispatch(setToken(result)); console.log(result); }) .catch((error) => { dispatch(setSnackbarMessage(error)); console.log(error); }) .finally(resFinal => console.log(resFinal)); and finally calling microsoftTeams.authentication.notifySuccess microsoftTeams.initializate() is called as well, in project root file.1.9KViews0likes1CommentBuild Incoming webhook for particular user not channel
Hi Microsoft Team, I tried creating Incoming webhooks for a channel and expectedly it will notify every members of that channel. Is there a similar method or way where I could send an event/notification message from our service to a particular user, not in channel? Is it possible to create a custom app with this approach? Thank you.10KViews0likes2CommentsCustom Presence or Callback method for Presence
Hi everyone, I'm trying to build an app where I could listen for a change when the presence of current user is changed. For instance, when user switch from available to busy, do not disturb, be right back or appear away. I can't find a method in microsoft/teams-js sdk. Is there a way to do it? Also, I'm not sure if it is possible but is there a way where we could add a custom Presence separate from default Presence (available, busy, do not disturb, be right back and appear away)? then I can also add callback for this presence changed. It would be nice if this is possible. Please let me know. Thank you.898Views0likes1CommentPlaceholders in url for custom tab don't work.
I try to implement already build app in PHP to Teams custom tab. Page works fine but I need some data from teams. All data I need are provided in placeholders as noted here: https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/access-teams-context The problem is that if I insert any placeholder like ?tid={tid} I get a blank page. I can't find a way to debug this to find what's wrong. Basically I have a simple PHP applications where I need to read $_GET data but for some reason when I add any placeholder I get a blank tab. Anyone had similar issues ?1.6KViews0likes1CommentServer Error in '/' Application - SPFX Tab in Teams
Has anyone else gotten this error for a Teams SPFX tab? Any clues what might be the issue? It was a private team and we had just added about 20-30 users who were all trying to access it at the same time so it could have been a permissions sync issue, but several people got it. It started working after each person who got the error tried a couple of times to click the tab.1.8KViews0likes0Comments