Jan 21 2023 12:38 PM
I'm using Microsoft Visual Studio 2022 and the Teams SDK (C#). I have a working application, but am trying to use the shareAppContentToStage JS function. I am able to confirm with logging statements that microsoftTeams and microsoftTeams.meeting are both available, and I see some of the functions off of these as well. For some reason shareAppContentToStage is not availble and shows up as undefined. Any ideas on what could cause this? I had it work late last night, but seems like something has changed (hoping it's just on my end). Any help would be greatly appreciated!
Jan 21 2023 10:40 PM - edited Jan 21 2023 10:40 PM
Quick update - I am able to now call it, but only after I remove the teamsUserCredential.GetUserInfoAsync() call first. Not sure what that has to do with it, but definitely was extremely hard to pinpoint as there is no error messages that tell you that. Any ideas on what caused this or how I can get the user email with that call or another call?
Jan 22 2023 10:18 PM
Jan 23 2023 10:53 AM
Jan 24 2023 03:55 AM - edited Jan 24 2023 04:20 AM
app.getContext().then((context: Context) => {
var appContentUrl = "https://www.demo.com/device?launchedBy="+context.loginHint;
microsoftTeams.meeting.shareAppContentToStage((err, result) => {
if (result) {
// handle success }
if (err) {
// handle error }
}, appContentUrl);
});
Thanks,
Nivedipa
*************************************************************************
If the response is helpful, please click "Mark as Best Response" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.