[Question] Notification and keep personal app state

%3CLINGO-SUB%20id%3D%22lingo-sub-1431283%22%20slang%3D%22en-US%22%3E%5BQuestion%5D%20Notification%20and%20keep%20personal%20app%20state%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1431283%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20starting%20to%20build%20personal%20tab%20app.%20What%20I%20wanted%20to%20achieve%20is%20to%20have%20the%20app%20a%20notification.%20Here's%20a%20scenario%2C%20I%20open%20the%20application%20on%20the%20left%20side%20navigation%20and%20do%20some%20operation%2C%20then%20I%20switch%20other%20app%20like%20chat.%20If%20something%20happened%20to%20the%20application%20the%20application%20will%20show%20a%20notification%20similar%20to%20activity%20feeds.%20Then%2C%20I'll%20open%20it%20again%20but%20the%20application%20should%20not%20be%20reloaded%20or%20refresh.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20basically%20does%20the%20microsoft%20custom%20apps%20offers%20the%20personal%20tab%20app%20to%20remain%20its%20state(without%20refreshing%2Freloading)%20when%20switching%20between%20application%2C%20and%20have%20notifications%20similar%20to%20notification%20new%20feeds%3F%20If%20possible%2C%20I%20also%20wanted%20to%20have%20control%20about%20the%20visibility%20of%20the%20notification%20inside%20the%20application%2C%20for%20instance%2C%20even%20though%20the%20application%20is%20already%20open%20I%20want%20the%20notification%20to%20remain%20visible.%20Is%20the%20above%20functionality%20possible%3F%20Please%20let%20me%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1431283%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENotification%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETab%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432662%22%20slang%3D%22en-US%22%3ERe%3A%20%5BQuestion%5D%20Notification%20and%20keep%20personal%20app%20state%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432662%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F685623%22%20target%3D%22_blank%22%3E%40avillanueva%3C%2FA%3E%26nbsp%3B%2C%20Could%20you%20please%20clarify%20what%20you%20are%20looking%20for%3F%20It%20seems%20you%20want%20to%20notify%20when%20user%20switch%20to%20chat%20from%20tab(if%20any%20change%20happened%20with%20tab%20like%20refresh%20or%20reload).%20You%20can%20maintain%20the%20state%20of%20tab%20at%20your%20end%20(tabs%20are%20iframe%20webpages%20so%20you%20can%20handle%20the%20refresh%20logic%20at%20your%20end).%20You%20can%20also%20fetch%20the%20recently%20used%20tabs%20instances%20using%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fusing-teams-client-sdk%23teams-sdk-public-api%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EgetMruTabInstances%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3Emethod.%20later%20you%20can%20notify%20user%20by%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbot-service%2Fbot-builder-howto-proactive-message%3Fview%3Dazure-bot-service-4.0%26amp%3Btabs%3Dcsharp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esending%20proactive%20notification%3C%2FA%3E(if%20your%20app%20configured%20Bot).%26nbsp%3B%20Currently%20there%20is%20no%20way%20to%20notify%20in%20activity%20feed%20using%20Tabs.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1433388%22%20slang%3D%22en-US%22%3ERe%3A%20%5BQuestion%5D%20Notification%20and%20keep%20personal%20app%20state%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1433388%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20response.%20Apologies%20if%20my%20description%20is%20not%20clear%20to%20you.%20So%20what%20I%20wanted%20to%20do%20is%20to%20have%20a%20customer%20app%20where%20it%20keep%20its%20state.%20For%20instance%2C%20if%20I%20open%20the%20custom%20app%20and%20do%20some%20operation%20with%20it%2C%20I%20want%20to%20keep%20the%20state%20of%20that%20app%20and%20not%20refresh%20again%20if%20I%20switch%20the%20app%20to%20like%20chat%20or%20other%20apps%20because%20usually%20when%20I%20switch%20apps%20and%20open%20my%20custom%20app%20again%2C%20it%20refreshes%20the%20page%20and%20it%20goes%20back%20to%20initial%20page%20and%20all%20the%20progress%20is%20lost.%20Another%20thing%20is%20to%20have%20a%20notification%20with%20that%20custom%20app.%20For%20instance%2C%20there%20is%20an%20event%20occurred%20in%20the%20custom%20application.%20I%20want%20the%20app%20to%20show%20the%20notification%20icon%20in%20the%20app%20itself%2C%20not%20in%20the%20activity%20feeds%20because%20if%20I'm%20not%20mistaken%20most%20of%20the%20notification%20goes%20to%20the%20activity%20feeds%20but%20for%20this%20application%2C%20I%20want%20to%20have%20it%20on%20the%20custom%20application.%20It%20will%20show%20a%20small%20notification%20icon%20in%20the%20custom%20app%20icon%20in%20the%20side%20navigation%20bar.%20I%20hope%20everything%20is%20clear.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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.

 

 

2 Replies
Highlighted

@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. 

Highlighted

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.