Google has released at the beginning of the month a new version for Google Play with many platform changes, from ads, app invites, awareness, identity to casting and many other more. One of the biggest changes to take into consideration is the Google Play Services SDK: it comes with the addition of new APIs especially for developers wishing to access LocationServices.
Although, most users use GoogleApiClient for such tasks, the company has explained that with the new location APIs the friction could be reduced. The developers will be able to access device location, setup geofences and even prompt user to enable location on the device. The plan was for Google Play v11 to offer a better experience for developers, making an easier and less error-prone code.
The connection logic of the APIs will be handled automatically, allowing the developer to relax and only attach a single completion listener. The calls will wait for the service connection automatically meaning that developers no longer need to wait for onConnected before making requests. The new version also makes it easier to compose asynchronous operations thanks to the Task API used by the Location Services APIs.
To make it even a greater experience, the new APIs will resolve connection problems automatically (some of them at least). Users do not need to implement the code that prompts the user to update the app’s services.
For those unfamiliar with the APIs, they must know that this set of procedures allow developers to create apps which get access to data of an operating system. The acronym API stands for Application programming interface and it can take forms such as data structures, object classes, remote calls, Windows API, Java APIs, variables, the C++ Standard Template Library.
All that is left for developers is to try the new version of Google Play.
Get more stuff like this
in your inbox
Subscribe to our mailing list and get interesting products and updates to your email inbox.
Thank you for subscribing.
Something went wrong.