Forum Discussion
[Question] Notification and keep personal app state
avillanueva , Could you please clarify what you are looking for? It seems you want to notify when user switch to chat from tab(if any change happened with tab like refresh or reload). You can maintain the state of tab at your end (tabs are iframe webpages so you can handle the refresh logic at your end). You can also fetch the recently used tabs instances using getMruTabInstances method. later you can notify user by sending proactive notification(if your app configured Bot). Currently there is no way to notify in activity feed using Tabs.
Hi Trinetra-MSFT,
Thank you for the response. Apologies if my description is not clear to you. So what I wanted to do is to have a customer app where it keep its state. For instance, if I open the custom app and do some operation with it, I want to keep the state of that app and not refresh again if I switch the app to like chat or other apps because usually when I switch apps and open my custom app again, it refreshes the page and it goes back to initial page and all the progress is lost. Another thing is to have a notification with that custom app. For instance, there is an event occurred in the custom application. I want the app to show the notification icon in the app itself, not in the activity feeds because if I'm not mistaken most of the notification goes to the activity feeds but for this application, I want to have it on the custom application. It will show a small notification icon in the custom app icon in the side navigation bar. I hope everything is clear.
Thank you.
- ludwasMar 04, 2021Copper Contributor
avillanuevado you find any solution? I have the same requirement. The fun fact is that on mobile Teams apps, custom apps are behaving the way that I want to achieve (remember last state of custom application in case of switching context to chat or other one), but I cannot find a way to have the same experience in desktop/browser versions.
Thanks in advance.