A way to detect if the user is logging in from Web app or Native app

Hi there,

I’m working on integrating PayU into our checkout flow using the WebView component. The checkout link loads and works perfectly in the WebView in the native app, but on the web app it either fails to load or throws an error. Currently, the only workaround is to redirect users from the web app to the checkout link (Link - website).

I’m trying to figure out a reliable way to detect whether a user is on the web app or the native app so I can route them accordingly. Has anyone faced a similar issue or have suggestions on the best way to handle this?

Hi @amrj6823,

You can use the NoCode Monkey’s device detector component. The component would give below data :

Device Width - It’s a single number.

Device Height - It’s a single number.

Device OS - web, android , ios (Note - PWA’s return web every time and native apps which means apps published to stores return either android or ios depending on their device.)

Device Type - Desktop, Mobile

Thank you and have a great day!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.