{"id":592,"date":"2018-08-29T18:25:15","date_gmt":"2018-08-29T12:55:15","guid":{"rendered":"https:\/\/customers.ai\/wp-chatbot\/?p=592"},"modified":"2018-11-28T19:01:26","modified_gmt":"2018-11-28T13:31:26","slug":"detect-device","status":"publish","type":"post","link":"https:\/\/customers.ai\/wp-chatbot\/detect-device\/","title":{"rendered":"Detect Device"},"content":{"rendered":"\n<p>By D<g class=\"gr_ gr_72 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace\" id=\"72\" data-gr-id=\"72\">efault<\/g>, this plugin Detects the device based on HTTP User Agent. (Android, IOS..)<\/p>\n\n\n\n<p>If the user agent is Android, IOS or similar identify as mobile device otherwise Desktop.<\/p>\n\n\n\n<h4>Navigation ( WhatsApp Mobile App, Browser )<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"739\" height=\"117\" src=\"https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/detect_device.png\" alt=\"\" class=\"wp-image-593\" srcset=\"https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/detect_device.png 739w, https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/detect_device-300x47.png 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/figure>\n\n\n\n<p>The\u00a0plugin Navigation Links\u00a0will be created based on the \u201cDevice Detect\u201d option (\u00a0WhatsApp Web page or WhatsApp mobile App )<\/p>\n\n\n\n<p>In case cache plugins are installed, and if that cache plugin is not creating cache pages based on device type, then in both mobile, desktop navigates to WhatsApp mobile app or Web page only in both devices types.<\/p>\n\n\n\n<p> It is based on when the page loads for the first time.<\/p>\n\n\n\n<p>To fix this issue, change the \u201cDetect Device\u201d field to \u201cScreen size&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"747\" height=\"116\" src=\"https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/screen_size_detect_device.png\" alt=\"\" class=\"wp-image-594\" srcset=\"https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/screen_size_detect_device.png 747w, https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/screen_size_detect_device-300x47.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/figure>\n\n\n\n<p>And Adjust the Max Screen Width of a mobile device.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/customers.ai\/wp-chatbot\/wp-content\/uploads\/2018\/08\/mobile_screen_width.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>By Default, this plugin Detects the device based on HTTP User Agent. (Android, IOS..) If the user agent is Android, IOS or similar identify as mobile device otherwise Desktop. Navigation ( WhatsApp Mobile App, Browser ) The\u00a0plugin Navigation Links\u00a0will be created based on the \u201cDevice Detect\u201d option (\u00a0WhatsApp Web page or WhatsApp mobile App ) &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/customers.ai\/wp-chatbot\/detect-device\/\"> <span class=\"screen-reader-text\">Detect Device<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[8],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/posts\/592"}],"collection":[{"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/comments?post=592"}],"version-history":[{"count":5,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":647,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/posts\/592\/revisions\/647"}],"wp:attachment":[{"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/media?parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/categories?post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/customers.ai\/wp-chatbot\/wp-json\/wp\/v2\/tags?post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}