possible to detect webapp or mobile browser in javascript
<p>I am working with web application (iOS/Android)</p>

<p>Basically, My application looks like</p>

<ul>
<li>Basically it is just webpage</li>
<li>Application wrapped it with WebView</li>
<li>So technically, user can access the page with mobile browser(like Safari, Chrome, etc even PC Web browser) and Mobile Application</li>
</ul>

<p>what I trying to do is detecting request from user is form Mobile Application or mobile browser.(with javascript) </p>

<p>Is it even possible?
If yes, recommend the method(I prefer native javascript since project is commercial)</p>

<p>Thanks.</p>

<p>P.S. I do not need device detect with <code>navigator.userAgent</code>, purpose of this job is detecting mobile browser or mobile app, not which device user uses.</p>