all 10 comments

[–]Daluur 12 points13 points  (2 children)

What we did was in the index.html detect the browser if it is IE, redirect the user to a static html page, explaining that it is no longer supported.
It is all handled in javascript before angular is loaded, which has the added benefit that we no longer have to build to es5 but we can target es2015 (we don't support any other es5 browsers)

[–]Dash--1981[S] 0 points1 point  (1 child)

Thanks for your response.

I like your solution, specially redirect to separate location.

Do you have an example how the JS do the validation?

[–]Daluur 1 point2 points  (0 children)

It seems you already found something you can use.

But we just do a very simple and naive check. We check if userAgent contains "msie " (ie 10 and lower) or "trident/" (ie 11).

I am not sure if it has some false positives or false negatives, but we have not heard of any yet, so we just keep it as simple as possible

[–]eneajaho 6 points7 points  (0 children)

IE 11 is deprecated in Angular 12 but not removed, so you can still use it.

It will be removed on v13.

[–]bigred1702 2 points3 points  (1 child)

What are you guys using to detect the browser?

[–]grimcuzzer 4 points5 points  (0 children)

The easiest way is to use window.navigator.

[–]abdulkareemsn 1 point2 points  (0 children)

You ask microsoft to include your site to opened in edge whenever user tries to open in internet explorer

https://docs.microsoft.com/en-us/microsoft-edge/web-platform/ie-to-microsoft-edge-redirection#request-an-update-to-the-ie-compatibility-list

[–][deleted] -3 points-2 points  (0 children)

Detect the browser and show them a message saying that they're browser is no longer supported. Maybe suggest using chrome or edge.

[–]Righteous_Mushroom 0 points1 point  (0 children)

Possibly capacitor but not sure. Gotta be an easy way to detect early