How to determine if browser or app

In case anyone else needs to do this the solution I’ve settled on is a pretty simple.

It seems that the apps (both android and ios at least) serve from the file:// protocol so

this.isApp = !document.URL.startsWith('http');
12 Likes