Forum Discussion

avillanueva's avatar
avillanueva
Copper Contributor
Jun 01, 2020

[Question] Notification and keep personal app state

Hi everyone,

 

I'm starting to build personal tab app. What I wanted to achieve is to have the app a notification. Here's a scenario, I open the application on the left side navigation and do some operation, then I switch other app like chat. If something happened to the application the application will show a notification similar to activity feeds. Then, I'll open it again but the application should not be reloaded or refresh. 

 

So basically does the microsoft custom apps offers the personal tab app to remain its state(without refreshing/reloading) when switching between application, and have notifications similar to notification new feeds? If possible, I also wanted to have control about the visibility of the notification inside the application, for instance, even though the application is already open I want the notification to remain visible. Is the above functionality possible? Please let me know.

 

Thank you.

 

 

4 Replies

  • juanmlarios's avatar
    juanmlarios
    Copper Contributor

    avillanueva  What I've found in building personal apps is that this cannot be done without some server side caching of state. There is nothing in MS teams that would help with this. Your application is being rendered in an IFrame so MS teams has no real storage or state management for you. It is much more noticeable when you jump from Tab to Tab in a personal app. Basically the application is relaunching again but routed to another route of the same application. My team essentially did away with the Tabs because we lost all Global State and had to regenerate it again when the application reloaded. We switched to an In Application navigation system instead of tabs.

     

    I suspect that if you cannot get around the refresh issue but you could possibly track state on the application and when the application refreshes, make sure you route to the previously visited route and load all the 'cached' state.

     

    Hope it helps

Resources