The mobile apps use the useragent called appsconda. And this is the main variable that needs to be used while doing all kinds of programming.
- Get the useragent using the following variable.
<?php $appsconda = $_SERVER['HTTP_USER_AGENT']; ?>
Then you can use it to hide/show content on mobile app.
<?php if (stristr($appsconda, "appsconda")) : ?> // Content here will show only on mobile app but not on website/browser <?php endif; ?>
<?php if (!stristr($appsconda, "appsconda")) : ?> // Content here will show only on website/browser but not on mobile app <?php endif; ?>