Blazorade-Teams icon indicating copy to clipboard operation
Blazorade-Teams copied to clipboard

TeamsApplication does not work on Android device

Open MikaBerglund opened this issue 4 years ago • 3 comments

When you create a Teams application using the TeamsApplication component, the application does not work on Android devices. The tab just shows the message in the below screenshot. Screenshot_20210221_190101_com microsoft teams-b

MikaBerglund avatar Feb 21 '21 21:02 MikaBerglund

It seems that there is something "fishy" with this problem. The application initialization on Android devices fail when trying to get the Teams context. That call will never return to the Blazor application. The call to Initialize() works though.

Continuing investigations...

MikaBerglund avatar Mar 15 '21 07:03 MikaBerglund

This is probably because something on the Android device is blocking notifications. There are lots of reasons (apps like battery savers) for this. I would not consider this a Blazorade issue.

ronaldpschutte avatar Jun 12 '21 08:06 ronaldpschutte

The thing is that if I simplify things, and create a page that uses Blazor JS interop directly on the page, I get it to work on Android devices too.

It actually is not directly an issue with Blazorade Teams, but the DotNetInstanceCallbackHandler in Blazorade Core, which Blazorade Teams uses.

MikaBerglund avatar Jun 12 '21 10:06 MikaBerglund