Index: drupalchat.module
===================================================================
--- drupalchat.module	(revision 3771)
+++ drupalchat.module	(working copy)
@@ -36,9 +36,11 @@
  * Implementation of hook_footer().
  */
 function drupalchat_footer() {
-  global $user;
-  if (user_access('access drupalchat')) {
-    return theme('drupalchat');
+  if(!drupalchat_device_is_mobile()) {
+    global $user;
+    if (user_access('access drupalchat')) {
+      return theme('drupalchat');
+    }
   }
 }
 
@@ -155,7 +157,7 @@
 }
 
 function drupalchat_init() {    
-  if(user_access('access drupalchat')) {
+  if(user_access('access drupalchat') && !drupalchat_device_is_mobile()) {
   	global $user;
   	       
 		$status = db_result(db_query('SELECT status FROM {drupalchat_users} WHERE uid = %d', $user->uid));
@@ -409,3 +411,13 @@
 
   return $path;
 }
+
+function drupalchat_device_is_mobile() {
+    if(stripos($_SERVER['HTTP_USER_AGENT'],"iPod") || stripos($_SERVER['HTTP_USER_AGENT'],"iPhone") || stripos($_SERVER['HTTP_USER_AGENT'],"iPad")
+    || stripos($_SERVER['HTTP_USER_AGENT'],"Android")) {
+        return true;
+    }
+    else {
+        return false;
+    }
+}
