Forum Discussion

Raman_Zhukouski's avatar
Raman_Zhukouski
Copper Contributor
Feb 06, 2024

Teams-js navigateToApp function navigates to Activity tab

Hey there! I work on teams app (react js) with notification bot. I have two tabs - one is configurable(team) tab, the other is static (personal) tab. I want to have a button in configurable tab which should navigate user to a static tab. I use Deleted/teams-js  and its pages.navigateToApp function(

pages.navigateToApp({ appId: APP_ID, pageId: PAGE_ID, subPageId: SUB_PAGE_ID })

).
But instead of navigating me to the app's tab, it navigates me to Activity tab

Deeplinks work fine, but navigateToApp works weird, when i reset the Teams client cache it starts working as expected, but not for long
Here's my manifest: 

 

 

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json",
    "manifestVersion": "1.12",
    "version": "1.0.10",
    "id": "xxx",
    "packageName": "com.microsoft.teams.extension",
    "developer": {
        "name": "xxx",
        "websiteUrl": "xxx",
        "privacyUrl": "xxx",
        "termsOfUseUrl": "xxx",
        "mpnId": "xxx"
    },
    "icons": {
        "color": "resources/color.png",
        "outline": "resources/outline.png"
    },
    "name": {
        "short": "xxx",
        "full": "xxx"
    },
    "description": {
        "short": "xxx",
        "full": "xxx"
    },
    "accentColor": "#F0F0F0",
    "bots": [
        {
            "botId": "xxx",
            "scopes": [
                "team",
                "personal"
            ],
            "isNotificationOnly": true,
            "supportsCalling": false,
            "supportsVideo": false,
            "supportsFiles": false,
            "commandLists": []
        }
    ],
    "configurableTabs": [
        {
            "canUpdateConfiguration": true,
            "configurationUrl": "xxx",
            "scopes": [
                "team"
            ],
            "context": [
                "channelTab"
            ]
        }
    ],
    "staticTabs": [
        {
            "entityId": "xxx",
            "scopes": [
                "personal"
            ],
            "context": [
                "personalTab"
            ],
            "name": "xxx",
            "contentUrl": "xxx",
            "websiteUrl": "xxx",
            "searchUrl": "xxx"
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "xxx"
    ],
    "webApplicationInfo": {
        "id": "xxxx",
        "resource": "api://xxx/xxx"
    },
    "defaultInstallScope": "team"
}

 

 

Teams client version: 24004.1304.2655.7488 
Deleted/teams-js version: 2.14.0 
Does anybody know how to fix this?