{"id":26079,"date":"2015-09-02T11:10:06","date_gmt":"2015-09-02T05:40:06","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=26079"},"modified":"2016-01-19T13:33:22","modified_gmt":"2016-01-19T08:03:22","slug":"mailto-links-on-android-devices","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/","title":{"rendered":"mailto links on android devices"},"content":{"rendered":"<p>Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad&#8217;s but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below<\/p>\n<pre>&lt;a href=\"mailto:someone@example.com?Subject=Hello%20again\" target=\"_blank\"&gt;Send Mail&lt;\/a&gt;\r\n<\/pre>\n<p>and then tested this test page, and guess what it works with the android device!!!.<\/p>\n<p>So, this means that something is different or special in the actual (application\u2019s) HTML. After investigating further, we realized that the \u2018mailto\u2019 link is placed within a nested iFrame instead of the top level page.<\/p>\n<p><strong> This concludes that this case was not getting handled on Android when mailto is within an iFrame.<\/strong><\/p>\n<p>Then to quickly try again, we updated the target attribute of the anchor tag to value &#8220;_top&#8221;. Miraculously it worked!!!<\/p>\n<pre>&lt;a href=\"mailto:someone@example.com?Subject=Hello%20again\" target=\"_top\"&gt;Send Mail&lt;\/a&gt;\r\n<\/pre>\n<p>Hope this helps!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad&#8217;s but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below &lt;a href=&#8221;mailto:someone@example.com?Subject=Hello%20again&#8221; target=&#8221;_blank&#8221;&gt;Send Mail&lt;\/a&gt; and then tested this test [&hellip;]<\/p>\n","protected":false},"author":528,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":99,"footnotes":""},"categories":[518,1772],"tags":[4845,4842,2279,2277,2278],"class_list":["post-26079","post","type-post","status-publish","format-standard","hentry","category-android","category-mobility","tag-android","tag-html","tag-links","tag-mailto","tag-mobile-devices"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad&#039;s but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Parampreet Singh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"mailto links on android devices | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad&#039;s but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"mailto links on android devices | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad&#039;s but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#article\",\"name\":\"mailto links on android devices | TO THE NEW Blog\",\"headline\":\"mailto links on android devices\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/parampreet\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-09-02T11:10:06+05:30\",\"dateModified\":\"2016-01-19T13:33:22+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#webpage\"},\"articleSection\":\"Android, Mobility, Android, HTML\\\/UI\\\/CSS, links, mailto, mobile devices\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#listItem\",\"name\":\"mailto links on android devices\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#listItem\",\"position\":3,\"name\":\"mailto links on android devices\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/parampreet\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/parampreet\\\/\",\"name\":\"Parampreet Singh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/ddeed523-2103-40d5-940d-64d3e7d7ae68_parampreet.singh@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Parampreet Singh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/\",\"name\":\"mailto links on android devices | TO THE NEW Blog\",\"description\":\"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad's but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/mailto-links-on-android-devices\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/parampreet\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/parampreet\\\/#author\"},\"datePublished\":\"2015-09-02T11:10:06+05:30\",\"dateModified\":\"2016-01-19T13:33:22+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"mailto links on android devices | TO THE NEW Blog","description":"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad's but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test","canonical_url":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#article","name":"mailto links on android devices | TO THE NEW Blog","headline":"mailto links on android devices","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/parampreet\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2015-09-02T11:10:06+05:30","dateModified":"2016-01-19T13:33:22+05:30","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#webpage"},"articleSection":"Android, Mobility, Android, HTML\/UI\/CSS, links, mailto, mobile devices"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","name":"Android"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","position":2,"name":"Android","item":"https:\/\/www.tothenew.com\/blog\/category\/android\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#listItem","name":"mailto links on android devices"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#listItem","position":3,"name":"mailto links on android devices","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/android\/#listItem","name":"Android"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/parampreet\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/parampreet\/","name":"Parampreet Singh","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/ddeed523-2103-40d5-940d-64d3e7d7ae68_parampreet.singh@tothenew.com.jpg","width":96,"height":96,"caption":"Parampreet Singh"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/","name":"mailto links on android devices | TO THE NEW Blog","description":"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad's but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/parampreet\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/parampreet\/#author"},"datePublished":"2015-09-02T11:10:06+05:30","dateModified":"2016-01-19T13:33:22+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"mailto links on android devices | TO THE NEW Blog","og:description":"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad's but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test","og:url":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"mailto links on android devices | TO THE NEW Blog","twitter:description":"Recently we added a feature that uses the mailto link. While testing it was found that working fine on Desktops, iPhones, and iPad's but not on android devices. To debug it quickly, we created a test page with just mailto link in it as shown below Send Mail and then tested this test","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"26079","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 18:35:32","updated":"2024-02-29 09:29:25","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/android\/\" title=\"Android\">Android<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tmailto links on android devices\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Android","link":"https:\/\/www.tothenew.com\/blog\/category\/android\/"},{"label":"mailto links on android devices","link":"https:\/\/www.tothenew.com\/blog\/mailto-links-on-android-devices\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/26079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/528"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=26079"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/26079\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=26079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=26079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=26079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}