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
Deeplink breaks Teams App navigation (New Teams v2; Bot and Static Tabs) #1227
Comments
Hello @milcem |
Hi Vikram! Do you have any specific code snippets you need to see? I will share the main ones - the deeplink generation for the adaptive card for the bot response, the deeplink generation for navigating from one static tab to the others. If you need anything additional let me know. The code that builds the deeplink The code that builds the adaptive card The adaptive card schema and action item This is the code in one of our static tabs that handles navigation using a deeplink or pages This is another example of the deeplink navigation breaking but it is not from an Adaptive Card. The manifest part that would be relevant (the bot and static tabs) are also set up as per Microsoft's documentation. Bot uses same app id as static tabs. Again, this behavior started happening to our app with the New Teams and no code, deployment settings, configuration changes. With the above code, when we run the app for local debug (or in production) the user can navigate across tabs using the pages.navigate code, and when they click on the button to navigate from the above static tab to another with the Pages navigation, it works fine and the user can move back across tabs and the Chat tab does not disappear. But if the user uses the deeplink to navigate using the same button, it will take him to the right static tab, but pressing on any other tab after will open the dialog from the store to open the app instead of opening the tab, and the Chat tab disappears. I will post the video as soon as I can and follow up with it, but if you see the photos I started with, they show sequentially that we ask the bot a query, we receive an adaptive card with deeplink to static tab, static tab opens and loads content but app navigation (clicking on the other tabs doesn't work, instead it opens the dialog to open the app from the store. |
Hello @milcem - Thanks for sharing the information. |
Hi @ChetanSharma-msft appreciate the note, just wanted to check in if there have been any updates or clarifications on this? I wanted to note when we found a couple of similar issues online, in the last week Microsoft techs have been answering that the fix is introduced in the latest Teams client version, but even after I updated it, the issue persists. To that end, if this is a Teams V2 bug, is there any way, any fix, even if ugly, to handle the navigation intermittently so the tabs/app navigation doesn't break? Would appreciate any advice on the matter. |
Similar issues posted on other repos OfficeDev/microsoft-teams-library-js#2269 - similar issue using deeplink on file Just wanted to point these out as similar to ours, but the potential resolutions offered, we tried and they didn't work. |
Hello @milcem |
Will try the sample today and keep you posted. Does this mean there is a bug on your side for deeplinks breaking the navigation with the other code? Would appreciate more info/confirmation as we are spending resources on this to figure it out still. |
@Vikram-MSFT before I even run this code, I want to mention the set-up: The bot (using the messages endpoint on Bot Framework) is part of our code. The other code is the static tabs. So this code will still fail in this situation? /edit to save you the response - it does fail in this situation. If you have any ideas for the Bot+Static Tab tab navigation (when the app is the same, but the code is separate for each) as we can't add the pages.navigation code in the Bot part, please let us know as it would be much appreciated still. |
@Vikram-MSFT @ChetanSharma-msft hi, have you had a chance to look into this by any chance? Again, would really appreciate any type of indication if the deeplinking is not working on your end and if it is a Teams v2 bug, or is it us, as we are still spending our resources on figuring this out, and nothing in the documentations or sample codes is helping... |
Hello @milcem |
@Vikram-MSFT appreciate the updated documentation, but can't find anything for linking to a static tab through a deeplink now? Using subEntityid (or subpage id whatever it is called in Teams v2) with context? If you could point me to which is the right deeplink to do in this case would appreciate it. Again, the flow is - bot sends an Adaptive Card with text and deeplink, deeplink contains context from the text to load elements into the static tab. With the current setup, when we click on the deeplink, the navigation for the whole app in Teams fails (and obviously through that, the Chat tab disappears). If we click to refresh the tab or try to navigate to the other tabs of the same app, it will open the prompt from Teams App Store to open the same app. I don't need to send a link to the chat, I need to send a deeplink that opens a static tab with context from the Chat (bot's message) and doesn't remove the Chat tab and break in-app/in-Teams navigation of the same app. I would really, really appreciate more details please. Were you able to reproduce the issue? |
@Vikram-MSFT @ChetanSharma-msft any updates? Would really appreciate any indication of what is happening or what we can look into if this is not a Microsoft bug that you can reproduce. |
@Vikram-MSFT @ChetanSharma-msft checking in again for any updates. Not to be annoying at all, just to buzz the notifications and hopefully get an update soon :) appreciate your work. |
Hello @milcem - Sorry for delay in response. |
Hello @milcem |
@Vikram-MSFT @ChetanSharma-msft Appreciate the update! Looking forward to any further advice. |
@Vikram-MSFT just to clarify, did you manage to repro the issue internally in the end or you still can't? I am glad to share any more information that might help you if that is the case. And any workarounds for deeplinks in the meantime would be deeply appreciated for the aforementioned scenario if such exist. Thanks! cc @ChetanSharma-msft |
Hello @milcem |
Bot with static tabs – button with deeplink from Adaptive Card
User clicks on it – Chat tab disappears and clicking on any other tab after will open the store
And prompt the app to open rather than open the static tab:
This behavior seems to indicate that we go out of the app when we use the deeplink?
Teams V2:
We have a bot with static tabs built as a Teams app, we haven’t had any issues using it so far, but since the new Teams update we started noticing bugs when we try to navigate through the app’s tabs using deeplinks.
In the Chat tab, the bot sends a response with Adaptive Card that has a button containing the Teams deeplink according to the documentation.
Expected behavior (worked on old Teams til update): user clicks on button deeplink which opens the static tab it points to with the subcontext loaded in it, and the user can navigate freely from that tab to the chat tab and the other static tabs in the Teams app.
Current behavior (old Teams): user clicks on button deeplink, opens the static tab with the subcontext, navigation works normally, no bugs
Current behavior (New Teams (v2)): user clicks on button deeplink, opens the static tab with the subcontext, removes Chat tab, and if the user clicks on any other tab it opens the App Store and prompts the user to open the app that we made the deeplink click from.
No code changes that would prompt this behaviour.
Any advice on the matter would be greatly appreciated.
/EDIT to add we have included additionally the navigation code from Teams-JS v2 plus getting the context from the deeplink, but it is working with the same bug. And yes we make sure to match the entity / page ids which are the app id for our bot and Teams app, which contains the static tabs in the manifest as well.
The text was updated successfully, but these errors were encountered: