Skip to content
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

facing similar issue when navigating to chat tab on new teams #2248

Closed
rahulzycus opened this issue Apr 2, 2024 · 3 comments
Closed

facing similar issue when navigating to chat tab on new teams #2248

rahulzycus opened this issue Apr 2, 2024 · 3 comments

Comments

@rahulzycus
Copy link

rahulzycus commented Apr 2, 2024

in my case

  1. Redirecting to Chat context from other Tab with the click of a button.
  2. Tab contains button called 'View details' - on clicking it, user should be redirected to Chat window.

ss1

ss1
  1. using @microsoft/teams-js package version - "@microsoft/teams-js": "^2.2.0",
    with a call to pages.navigateToApp() functions -pls refer attached screenshot
    const navPromise = pages.navigateToApp({
    appId: "OurAppId",
    pageId: ""
    })
  2. not throwing any error, just comes out of the function and starts loading then stuck..
  3. note - if try to go manually to the chat tab "page says"- there was a problem reaching this app.
ss2

MicrosoftTeams-image

Can you please let me know in which version the bug has been fixed ? We're facing similar issue.

Our use case -

  1. Redirecting to Chat context from Tab with the click of a button.
  2. Tab contains button called 'See actions' - on clicking it, user should be redirected to Chat window.
  3. We're using @microsoft/teams-js package with a call to pages.navigateToApp() functions - refer attached screenshot
  4. It doesn't throw any error, just comes out of the function.

Teams-js version -
$ grep -i teams-js package.json
"@microsoft/teams-js": "^2.2.0",

Can you @Nivedipa-MSFT please check and point us to the solution ? Thank you.

Originally posted by @sohamzycus in #1247 (comment)

@ChetanSharma-msft
Copy link

Hello @rahulzycus - Thanks for raising your query.
We will check on it and let you know the updates.

@Prasad-MSFT
Copy link

Prasad-MSFT commented Apr 8, 2024

Hi @rahulzycus - Using this sample, we checked the functionality of pages.navigateToApp() function in New Teams and observed that it is working fine.

        app.initialize().then(app.getContext).then((context) => {
            if (pages.currentApp.isSupported()) {
                const navPromise = pages.currentApp.navigateToDefaultPage();
                navPromise.
                    then((result) => { console.log("This is Default Page") }).
                    catch((error) => { console.log("error", error) });
            }
            else {
                const navPromise = pages.navigateToApp({ appId: externalAppId, pageId: "default_tab", subPageId: "" });
                navPromise.
                    then((result) => { console.log("Navigation Successfull", result) }).
                    catch((error) => { console.log("error", error) });
            }
        });

Tested in Microsoft Teams version 24093.1900.2795.5438.
The client version is 49/24040311800.

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants