Back button not working as expected in Teams Mobile - microsoft-teams

I have the MS team's custom tab application for the team's. It is an angular application, it has some internal navigations like navigating from one view to another. When I am sending a notification using the sendActivityNotification API call, it reaches to the mobile app. With the click of the notification, the application loads and it works fine.
But after navigation, if I tap on the back button of the device or (<-) button from the MS team's app header then it behaves like loading the history instead of navigating back to the activity(Feed).
Thanks,
Pratap

Related

how to refresh screen in ai2?

I am making a simple social network app using App Inventor 2.
When a user follows another user, I need the follow button to become unfollow button and this works.
But when I click on unfollow buttton it shows follow notifier message, so is there a way I can make a hidden refresh so all the data recieved from database is updated?

MS Teams submitTask fails to submit to bot in IOS Teams app

I open a web/html dialog from an adaptive card with the task/fetch Action.Submit.
Once the user is done with the work in the web dialog, I call microsoftTeams.tasks.submitTask with a resulting javascript object.
This works perfectly fine in the web and the desktop client. The dialog is closed and the bot on the server is triggered with the resulting object.
However in the IOS app, only the dialog is closed but the bot is never notified.
I have tried all variations of the submitTask (with botId or appId as second parameter or without second parameter). Nothing is successful on the IOS app.
Is there anything I can do to further debug that behaviour? Or is this a known bug?

Xamarin.Forms UI not responding

I'm working on a Xamarin.Forms app using the Prism library. The app has a phone component to it with integration to CallKit and a SIP library. When the device is locked, a call can be received, which results in the native phone UI for iOS. User can answer the call and hangup. Within the app, there is a Xamarin.Forms page to handle calls. There are events from the iOS service that deals with the calls to interact with the "shared project". The issue that I am running in to is that when the user unlocks the device and returns to the app, the UI is non-responsive.
Scenario:
User starts app and logs in.
User locks device
Incoming call received
User answers call
Behind the scenes (i.e. native phone UI), the call service communicates with the "shared project" to display a Call Screen in the app. Since the phone is locked, the user will not see this now.
User hangs up.
When user hangs up, the call service communicates with the "shared project" that the call has been terminated and to return to the previous screen.
User then unlocks the screen
App is on same screen as when user locked device, but UI is not responsive.
To navigate to the call page, I am doing:
await NavigationService.NavigateAsync(targetPage, null, useModalNavigation: null, animated: animated);
and to return to previous page:
await NavigationService.GoBackAsync(animated: false, parameters: parameters);
NavigationService is of type INavigationService from Prism.
The essential question is: what would make the navigation appear to work, but result in a non-responsive UI? I've found in the past that I need to do the navigation on the main thread. Is there anything else I need to look for?
What I understood that you are looking for a method just like the OnAppearing method of forms page.
You need to implement interface INavigatedAware to your ViewModel. By doing this, 2 methods will be added to your ViewModel "NavigatedTo" and "NavigatedFrom". You need to put your logic into the "NavigatedTo" method. This method will be triggered whenever that particular page will appear on the screen.

Chat history Persistence in MicroSoft Botframework WebChat window

I have a requirement of maintaining chat history and loading them back in a window after a page refresh or close and opening of the window.
ISSUE : Buttons/carousel/Adaptive cards/Hero Cards events/ properties are not loading (ie; when I click on button or any event, actions are not happening).
DESCRIPTION:
In order to achieve the requirement i had 2 options.
BotFramework _ Directline JS
I guess using this we can only get conversation history and where we couldn't load back the conversation history in chat window.
Though we can get the conversation history we have to send all the messages to bot again.
So i had opted 2nd one.
Store the html controls and Load it in the bot div: When sending or receiving message action is happening from bot am storing the html controls(i.e; controls under wc-message-groups class in local storage) and binding back to the div on page load if data exists.
This works for me to show conversation history in a chat window. But I am not able to get the events/actions for buttons.
Can we do this with Directline JS or is there any option to load properties/events to controls?
Please help me with this issue.
Thanks in Advance
I would start by taking a look at this thread out the Webchat GitHub repo. There is a good discussion going on about how this may be accomplished.
I also created this project in C# using webchat which will provide chat history in the webchat control. The project uses this pull request branch which you would also need to use. Hope this helps, good luck.

Insert into backstack wp7

I have an application with the following pages:
Login
Menu
Chat
when I start the application the order of the pages is the following Login -> Menu -> Chat
But... when my application is not running and I get a push notification I want to navigate the user directly to the chat window(and do the login in the background, without the login page). My problem comes at this point, because when I press back I would like to go to the menu page, and when pressing back again I want to go to the login page.
I dont want to navigate the user through the login and menu page before going to chat if he clicks a push notification.
Any suggestions?
One solution I can think of would be that you remenmber you came to the Chat page from a push notification. Then when Back key is pressed on the Chat page you you catch the event (OnBackKeyPress) and call NavigationContext.NavigateTo(MainPage) by yourself. You can do the same same on the Menu page.

Resources