{"id":19421,"date":"2015-06-29T15:10:03","date_gmt":"2015-06-29T22:10:03","guid":{"rendered":"http:\/\/blog.xamarin.com\/?p=19421"},"modified":"2015-06-29T15:10:03","modified_gmt":"2015-06-29T22:10:03","slug":"whats-new-in-google-play-services","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/whats-new-in-google-play-services\/","title":{"rendered":"What&#8217;s New in Google Play services"},"content":{"rendered":"<p>\t\t\t\tThere are a plethora of amazing APIs built right into the core operating system to take advantage of when developing for Android, and Google Play services (GPS) allows for the addition of even more unique experiences.<\/p>\n<h2>What is Google Play services?<\/h2>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-19427\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/GPS-Logo.png\" alt=\"GPS Logo\" width=\"160\" \/>GPS is a continuously updated library from Google that enables adding new features to Android apps without waiting for a new operating system release. One of the most well known feature of GPS is <a href=\"http:\/\/developer.xamarin.com\/guides\/android\/platform_features\/maps_and_location\/maps\/part_2_-_maps_api\/\" title=\"Google Maps API with Xamarin\" target=\"_blank\">Google Maps<\/a>, which allows developers to add rich, interactive maps to their apps. Since GPS is a separate library that&#8217;s updated regularly, there are always new APIs to explore. The most recent release, 7.5, has tons of great new features.<\/p>\n<h2>Getting Started with Google Play services<\/h2>\n<p>In previous releases of GPS, everything was bundled into one huge NuGet and Component Library to be added to an app. However, this has now changed and each API has been broken into its own unique NuGet package, so you can pick and choose which features to add to an app without increasing app size or worrying about linking. To get started with GPS, simply open the NuGet Package Manager and search for &#8220;Xamarin Google Play services&#8221;. A list of new packages available for Android apps will be displayed, and you can choose to install the &#8220;All&#8221; package or select only the ones you want.<\/p>\n<p><a href=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/GPS.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19424\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/GPS.png\" alt=\"GPS\" width=\"500\" \/><\/a><\/p>\n<p>To learn more about the changes to the GPS packages and APIs, <a href=\"http:\/\/redth.codes\/Xamarin-Google-Play-Services-Improvements\/\" title=\"GPS Improvements by Jon Dick\" target=\"_blank\">Xamarin Software Engineer Jon Dick&#8217;s blog post on the topic<\/a> is a great place to start.<\/p>\n<p>Once you have GPS installed, you can take advantage of tons of new APIs for your Android app, including some that I&#8217;m particularly excited about, outlined below.<\/p>\n<h3>Google Fit<\/h3>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-19432\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/fitness_64dp.png\" alt=\"fitness_64dp\" width=\"64\" height=\"64\" \/>Developers of fitness apps will be excited to see that <a href=\"https:\/\/developers.google.com\/fit\/\" title=\"Google Fit\" target=\"_blank\">Google Fit<\/a> has been updated with a brand new Recording and History API that enables gathering estimated distance traveled and calories burned in a simple API. This is in addition to the other APIs already available to discover sensors, collect activity data, and track a user&#8217;s fitness.<\/p>\n<h3>Android Wear Maps<\/h3>\n<p><img decoding=\"async\" class=\"alignleft wp-image-19431\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/Maps-Android-Wear-300x300.png\" alt=\"Maps Android Wear\" width=\"150\" height=\"150\" \/>Until now, there wasn&#8217;t a good way to show users their current location on a map on their Android Wear devices. The latest release, however, brings the entire Maps API to Android Wear, including support for interactive maps and <a href=\"\/android-tips-faster-maps-with-google-maps-lite\/\" title=\"Google Maps Lite API\" target=\"_blank\">non-interactive maps in Lite mode<\/a>.<\/p>\n<h3>Google Cloud Messaging Updates<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19430\" src=\"\/wp-content\/uploads\/sites\/44\/2019\/04\/GCM.png\" alt=\"GCM\" width=\"450\" \/>\nOne of my favorite features of GPS has to be Google Cloud Messaging (GCM) for sending push notifications to Android devices, and there have been several updates to GCM in Google Play services 7.5. The new <a href=\"http:\/\/developers.google.com\/instance-id\" title=\"Instance ID Token Documentation\" target=\"_blank\">Instance ID tokens<\/a> enable a single identity for your app across its entire lifetime instead of having a unique registration ID for each device. This simplifies the process of sending push notifications to all of the devices on which an app is installed.<\/p>\n<h3>So Much More<\/h3>\n<p>These aren&#8217;t the only additions to GPS with this release. Several new APIs have been added, including <a href=\"\/expand-your-apps-reach-with-googles-app-invites\/\" title=\"App Invites\" target=\"_blank\">App Invites<\/a>, Smart Lock for Passwords, and updates to Google Cast. The full list can be found in in the <a href=\"https:\/\/developers.google.com\/android\/guides\/overview\" title=\"Android Google Play services Documentation\" target=\"_blank\">Google Play services documentation<\/a>.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a plethora of amazing APIs built right into the core operating system to take advantage of when developing for Android, and Google Play services (GPS) allows for the addition of even more unique experiences. What is Google Play services? GPS is a continuously updated library from Google that enables adding new features to [&hellip;]<\/p>\n","protected":false},"author":544,"featured_media":19427,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[5,4],"class_list":["post-19421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developers","tag-android","tag-xamarin-platform"],"acf":[],"blog_post_summary":"<p>There are a plethora of amazing APIs built right into the core operating system to take advantage of when developing for Android, and Google Play services (GPS) allows for the addition of even more unique experiences. What is Google Play services? GPS is a continuously updated library from Google that enables adding new features to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/19421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/544"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=19421"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/19421\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=19421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=19421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=19421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}