i have a web app, i want to show some message to end user in a particular web page of app.
i am able to detect whether app is opening in desktop browser or mobile browser using below code
const isIOS = (['iPad Simulator','iPhone Simulator','iPod Simulator', 'iPad','iPhone', 'iPod'].indexOf(navigator.platform) !== -1);
const isAndroid = /android/i.test(navigator.userAgent);
const isMobile = isIOS || isAndroid;
but thing is i want to show some message in case user opening a page only through web view of android or iOS not in chrome or safari browsers of native apps.