Moodle for mobile

check if user is connected via mobile app

 
Picture of Παντελής Τοπτσής
check if user is connected via mobile app
 
Hi,
I want to create custom functions in php files but I don't want them to execute if user is connected using Mobile App.
Is there a way to check it in an "if" command?


 
Average of ratings: -
Picture of Juan Leyva
Re: check if user is connected via mobile app
Core developersMoodle HQParticularly helpful MoodlersPlugin developersTesters

Hi,

if (WS_SERVER) <-- this means you are accessing via the Mobile app or any web service client

 
Average of ratings: -