I'm working on angular project and I have a teams icon in .html. I need to redirect from browser to the teams app when the icon is clicked. Similar functionality is implemented for mail and phone number. When a user clicks on phone icon or mail icon, I'm doing this:
window.location.href = 'tel: 456****'; windo.location.href = 'mailto: firstname.lastname@example.org'
Tried for a while to know what should be assigned to window.location.href so that the redirection happens to teams app and didn't find any way for it. How do I redirect to teams using window location?
Take a look at the official documentation here:
There's examples for both if you have an email address and if you have a phone number. (You'll need that
4: part before the phone number.)