MobileChromeApps / google-play-services

A Cordova plugin for Android that adds Google Play Services
51 stars 94 forks source link

Dev guide for com.google.playservices? #1

Closed astanley closed 10 years ago

astanley commented 10 years ago

Discovered this API via the cordova plugins site: http://plugins.cordova.io/#/com.google.playservices

However there is no getting started info / guide for using it.

What is the API interface for Cordova/PhoneGap developers? How do they know how to use it?

bshepherdson commented 10 years ago

This plugin is intended to be used as a dependency by other plugins that need to do things on the native side that require the Play Services. There's no API on the Cordova side for Play Services. If you're writing a Cordova plugin on Android and it needs something from the Play Services, you can make that plugin depend on this plugin, and then you would have access to the Play Services.

As an example, chrome.identity in the main repo uses it in the Android code to access the user's accounts.

That said, there's no reason that information shouldn't be in this repo's README. I will add it.

astanley commented 10 years ago

Ah, now I understand. Thank you for explaining.