Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No callback triggered when calling GPG save data load. #20

Open
smks opened this issue Jan 14, 2016 · 1 comment
Open

No callback triggered when calling GPG save data load. #20

smks opened this issue Jan 14, 2016 · 1 comment

Comments

@smks
Copy link

smks commented Jan 14, 2016

public static var loadSavedGame(default,null) : String->Void = function(name:String):Void{}

^^ I firstly init the Google Play Games, I then call load saved game and pass a callback. The callback never gets triggered I noticed.

private function onLoadSavedGameComplete(name:String, statusCode:Int, data:String) {

    trace('load saved game returned ' + name + ' ' + statusCode + ' ' + data);

    if(onLoadGameComplete!=null) onLoadGameComplete(name,data);
}

private function onLoadSavedGameConflict(name:String, data:String, conflictData:String) {

    trace('load saved game conflicted ' + name + ' ' + data + ' ' + conflictData);

    if(onLoadGameConflict!=null) onLoadGameConflict(name,data,conflictData);
}

Nothing is ever traced.

typedef API = extension.multigames.Multigames;

API.loadSavedGame(GAME_SAVE_ID);

//// CLOUD 
///////////////////////////////////////////////////////////////////////////

public static function loadSavedGame(name:String){
    #if gpgnative
    trace('is google native');
        GooglePlayGames.loadSavedGame(name);

Basically I cannot load saved data?

@fbricker
Copy link
Contributor

fbricker commented Feb 1, 2016

Hi, this is strange. You should at least get some info on your android logs (using logcat).
You should check your android logcat to see what's going on (you should also check if you've enabled saved games feature on your google play games console and that the user on the cellphone has logged in properly into google play games).

Please check this and let me know what happens.

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

No branches or pull requests

2 participants