Coder Social home page Coder Social logo

Comments (9)

huntj88 avatar huntj88 commented on May 30, 2024

@mscherotter We are unable to replicate the presenceChanged callback not being called on android, can you tell us a little more about your scenario?

from live-share-sdk.

mscherotter avatar mscherotter commented on May 30, 2024

I have built a scenario based on this sample https://github.com/davrous/metaverseliveshare
On android, this call
await _presence.update(data, PresenceState.online);

throws an exception "The local user doesn't meet the app requirements to send a message for this app." Does Teams on Android need any additional permissions? the code works just fine running in Edge or the Teams desktop app on Windows 11.

This is the container schema that I am using:

const containerSchema = {
    initialObjects: {
        appState: LiveState<IShowState>,
        presence: LivePresence<IAvatarData>,
        notifications: LiveEvent,
        liveCanvas: LiveCanvas
    },
};

This is the permissions section from my manifest:

"authorization": {
        "permissions": {
            "resourceSpecific": [
                {
                    "name": "MeetingStage.Write.Chat",
                    "type": "Delegated"
                },
                {
                    "name": "ChannelMeeting.ReadBasic.Group",
                    "type": "Application"
                },
                {
                    "name": "ChannelMeetingStage.Write.Group",
                    "type": "Delegated"
                },
                {
                    "name": "LiveShareSession.ReadWrite.Group",
                    "type": "Delegated"
                },
                {
                    "name": "LiveShareSession.ReadWrite.Chat",
                    "type": "Delegated"
                },
                {
                    "name": "MeetingParticipantReaction.Read.User",
                    "type": "Delegated"
                }
            ]
        }
    }

Michael

from live-share-sdk.

ryanbliss avatar ryanbliss commented on May 30, 2024

Another partner has reported this same issue. Our mobile team is investigating as part of their next sprint.

from live-share-sdk.

huntj88 avatar huntj88 commented on May 30, 2024

@mscherotter Are you specifying allowed roles in the initialize function for presence? I see that you are not in the sample you linked.

Are you able to replicate this issue on iOS?

from live-share-sdk.

ryanbliss avatar ryanbliss commented on May 30, 2024

We found the issue. There is an Android client issue that we were finally able to repro and pinpoint. The teams-js response Android was sending for one of our APIs is formatted incorrectly in some cases. We will work on an update to the Android client, but fortunately all of the data needed is in the response. A polyfill that we tested solved the issue, so we will fix this in the next update!

from live-share-sdk.

ryanbliss avatar ryanbliss commented on May 30, 2024

This has been published as of version 1.0.2, or for turbo/react packages, 1.0.2-preview.1. Thanks for your patience!

from live-share-sdk.

mscherotter avatar mscherotter commented on May 30, 2024

I am seeing this issue and I am not using the turbo/react package.

from live-share-sdk.

mscherotter avatar mscherotter commented on May 30, 2024

@huntj88 I see the issue whether I pass the allowed roles or not. I have tried both scenarion.

from live-share-sdk.

huntj88 avatar huntj88 commented on May 30, 2024

It looks like obfuscation is causing the keys of the clientInfo object to change between different android builds

from live-share-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.