leecrossley / cordova-plugin-game-center

Cordova / PhoneGap Game Center Plugin for Apache Cordova >= 3.0.0
http://ilee.co.uk
78 stars 29 forks source link

onPluginsReady error #22

Closed ethernalyIT closed 9 years ago

ethernalyIT commented 9 years ago

Plugin loading seems broken: [Log] deviceready has not fired after 5 seconds. (cordova.js, line 1143) [Log] Channel not fired: onPluginsReady (cordova.js, line 1136) [Log] Channel not fired: onCordovaReady (cordova.js, line 1136)

schermata 2014-10-19 alle 12 23 34

I also tried to use this plugin alone (Without any other plugin) and the error is the same.

Config.xml has:

cordova_plugins.js has: { "file": "plugins/gamecenter/www/gamecenter.js", "id": "uk.co.ilee.gamecenter.GameCenter", "clobbers": [ "gamecenter" ] }

and: "uk.co.ilee.gamecenter": "0.2.9"

Index.js, the main app initializer has, after DeviceReady: app.receivedEvent("deviceready"); var successCallback = function (user) { alert(user.alias); // user.alias, user.playerID, user.displayName };

gamecenter.auth(successCallback, failureCallback);

Other plugins like "Social Sharing" and "iAd" are correctly working.

Test environment: iOS8 (iPhone) / iOS7.1.1 (iPad) iPhone5, iPad2 and Simulator OSX 10.9.5 cordova 3.5.0-0.2.7

leecrossley commented 9 years ago

I have tested the plugin on the platforms you mention and there isn't an issue - it must be a problem with your implementation, the plugin install or something else in your project. You could try to re-add the platform (or create a new project) and just add this plugin to confirm the issue.

ethernalyIT commented 9 years ago

Tried with a new "blank" project, always the same error. I also ask for help here: https://groups.google.com/forum/#!topic/phonegap/d-VOAjdFUu0

Maybe is - as you said - only a configuration issue

leecrossley commented 9 years ago

Did you try with just the game center plugin?