# Updating the smartphone user-agent of Googlebot

**URL:** <https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112>\
**Category:** Development\
**Created:** [2016年三月15日 22:56 UTC](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112 "2016-03-15T22:56:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [2016年三月15日 22:56 UTC](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112/1 "2016-03-15T22:56:02Z")

</div>

Next month Google will be updating the smartphone user-agent of Googlebot:

[https://webmasters.googleblog.com/2016/03/updating-smartphone-user-agent-of.html](https://webmasters.googleblog.com/2016/03/updating-smartphone-user-agent-of.html)

**Reviewing the code-base it doesn’t look like it’s going to make a blindest bit of difference to Discourse.**

Someone might possibily want to add the new user-agent here:  
[https://github.com/discourse/discourse/blob/master/spec/components/crawler\_detection\_spec.rb](https://github.com/discourse/discourse/blob/master/spec/components/crawler_detection_spec.rb)

Current Googlebot smartphone user-agent:

```plaintext
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

```

Googlebot smartphone user-agent starting from April 18, 2016:

```plaintext
Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

```

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年三月15日 22:56 UTC](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112/2 "2016-03-15T22:56:52Z")

</div>

So TL;DR Google is switching from iOS to Android 😆

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年三月15日 23:02 UTC](https://meta.discourse.org/t/updating-the-smartphone-user-agent-of-googlebot/41112/3 "2016-03-15T23:02:08Z")

</div>

Pretty sure current detection will continue to work, but push through a PR to add a test
