Forum Discussion

frapp32's avatar
frapp32
Copper Contributor
Jul 01, 2024
Solved

Teams App lifecylce questions and approach for external callbacks

Hi all,   i have started writing a teams app that mainly will display a (on board) angular application in a static tab. This application will connect to an external service via REST and register fo...
  • Prasad_Das-MSFT's avatar
    Jul 02, 2024

    frapp32 - Typically, the full Angular app will only be loaded when the tab is activated by the user. Static scripts or background services are not initialized directly upon starting Teams. However, you can consider using a bot or proactive messaging to notify the user when there are updates, which might prompt them to open the app tab. 
    - Bots can be a good solution for sending notifications to users. They can interact with users proactively and can be used to send messages to the user's activity feed when an update is received. 

    - There isn't a unified API that allows notifications in both Teams and Outlook in the same manner. Teams has an activity feed where you can post notifications, but Outlook does not have a similar feature. You might need to use different methods for each application. For Outlook, you could consider using actionable messages or email notifications. 

    - For connecting to an external service via REST and registering for push updates, you'll need to handle this on the server side. The server can then use the Microsoft Graph API or Bot Framework to communicate with your Teams app and send notifications to users.

     

     

    Thanks, 

    Prasad Das

    ------------------------------------------------------------------------------------------ 

    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.