Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Doesnt install and undefined error? #2

Open
tryagains opened this issue Mar 10, 2015 · 3 comments
Open

Doesnt install and undefined error? #2

tryagains opened this issue Mar 10, 2015 · 3 comments

Comments

@tryagains
Copy link

"cordova plugin add com.intel.GooglePlayGameServices"
Wont install

so I tried
"cordova plugin add com.intel.googleplaygamesplugin"
it installs but when I try to call connect(); in my deviceready callback I get a error undefined.

Not sure what to do

@tryagains tryagains changed the title Doesnt install and Doesnt install and undefined error? Mar 10, 2015
@imaffett
Copy link

this is usually because it's an invalid configuration (app not configured in Google Play, invalid app id, etc). Hook up your device to your computer and checkout LogCat, it gives more info. I do need to add better log messages.

@gdevdeiv
Copy link

gdevdeiv commented Jan 5, 2017

You are lacking two things. First, you need to install it like this:

cordova plugin add com.intel.googleplaygamesplugin --variable GPSAPPID=

Second, you need to import the Cordova JS script to load stuff. So you need to append the following line to your index.html:

<script src="cordova.js"></script>

From that moment you will be able to call functions like:

GooglePlayGamesPlugin.connect();
GooglePlayGamesPlugin.authenticate(success, failure);

And so on.

@natural-crusader
Copy link

cordova plugin add com.intel.googleplaygameservices --variable GPSAPPID="my-app-id"
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.intel.googleplaygameservices

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants