Wepp app work only Andro

New Contributor
I have inserted a PHP web app like tabs in Microsoft Teams and it only works on Android. Because?

The code I use to retrieve my Microsoft Teams username and then use it for my webadd



<script src='https://statics.teams.cdn.office.net/sdk/v1.6.0/js/MicrosoftTeams.min.js'></script>
	<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  if ( self !== top ){  var iframe='SI'; }
	else { var iframe='NO'; }
    microsoftTeams.getContext((context) => {
    	let userId = document.getElementById('user');
    	var richiesta = $.ajax({
    		type: 'POST', data: 'data='+context.userPrincipalName+' '+iframe, dataType: 'html', url:'https://servizi.biblico.it/MS_login/ms_teams_data'	});
    		richiesta.done(function(resp){ location.reload();
0 Replies