{"action":"opened","issue":{"url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/392","labels_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/392/comments","events_url":"https://api.github.com/repos/serbanghita/Mobile-Detect/issues/392/events","html_url":"https://github.com/serbanghita/Mobile-Detect/issues/392","id":72707377,"number":392,"title":"Mobile detection does not work for any phone i've tested with","user":{"login":"r3wt","id":4483325,"avatar_url":"https://avatars.githubusercontent.com/u/4483325?v=3","gravatar_id":"","url":"https://api.github.com/users/r3wt","html_url":"https://github.com/r3wt","followers_url":"https://api.github.com/users/r3wt/followers","following_url":"https://api.github.com/users/r3wt/following{/other_user}","gists_url":"https://api.github.com/users/r3wt/gists{/gist_id}","starred_url":"https://api.github.com/users/r3wt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r3wt/subscriptions","organizations_url":"https://api.github.com/users/r3wt/orgs","repos_url":"https://api.github.com/users/r3wt/repos","events_url":"https://api.github.com/users/r3wt/events{/privacy}","received_events_url":"https://api.github.com/users/r3wt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-02T22:20:07Z","updated_at":"2015-05-02T22:20:07Z","closed_at":null,"body":"tested with Samsung Galaxy 4, iPhone5, and Nokia Lumia 720. mobile detection fails.\r\n\r\n```\r\nif((new Mobile_Detect)->is_mobile()){\r\n\t$redirect = '/'.$app->args['path'];\r\n\tif(strpos($redirect,\"?\") === false){\r\n\t\t$redirect .= '?mobile';\r\n\t}else{\r\n\t\t$redirect .= '&mobile';\r\n\t}\r\n\t$app->redirect($redirect);\r\n}\r\n```"}}