Skip to content

Suggestion: Enabling two-way messaging for large-scale-notifcation Teams sample #1394

@AmirHamzahR

Description

@AmirHamzahR

Reference

Based on this Large Scale Notification GitHub repository

Image

What I've done so far

I was using this sample for disaster communication in Teams. Currently, I have added a way for the admin to tailor the HTTP message payload. In addition, the user can also respond towards the given notification message on the Teams chat.

Problem

However, the current architecture specializes in sending one-way messages to a large number of users. The incoming messages by users will be blocked in the process when trying to do two-way communications. I was having issues with decoupling it to front-end and back-end.

From my research, it seems that the blocking is caused by this section of the code:

// enqueueTasksForInstallationsActivity.ts

// this is dependent on the bot, what should I replace it with?
import { notificationApp } from "../internal/initialize";

const installationResult =
      await notificationApp.notification.getPagedInstallations(
        maxPageSize,
        token,
        false
      );
    installations = installationResult.data;
    token = installationResult.continuationToken;
 
    if (installations.length === 0) {
      break;
    }

Has anyone tried on this issue?

Thank you.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions