Forum QuickConnect PlayerIO.connect error

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

PlayerIO.connect error

Postby aseemgarg321 » February 22nd, 2017, 3:34 pm

I am getting this strange error in PlayerIO.connect..

where my Autentication type is basic, and still Authentication is failing saying -
"You can only call Connect() on game connections that are using the Basic authentication provider "..

Attaching screenhots..

Image

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby aseemgarg321 » February 22nd, 2017, 3:35 pm

Image
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby Henrik » February 22nd, 2017, 10:16 pm

Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: PlayerIO.connect error

Postby aseemgarg321 » February 23rd, 2017, 3:22 am

PlayerIO.authenticate is missing from AS3 SDK..
Kindly Check..

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby Henrik » February 24th, 2017, 3:58 am

It's working fine for me? Have you included PlayerIOClient.swc correctly? Here's my sample code:

Code: Select all
private var client:Client;

PlayerIO.authenticate(this.stage, "my_game_id_here", "public", { userId:"testuser" }, null, function(c:Client):void{
   client = c;
   log("Authenticated: " + client.connectUserId);
}, function(error:PlayerIOError):void{
   log("Authenticate error: " + error.message);
});
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: PlayerIO.connect error

Postby aseemgarg321 » February 24th, 2017, 1:18 pm

Hi,

My bad, I had a Zip file of same name PlayerIO.. that must have been an old file.. Guess this was getting picked up..


Also I tried Authenticate - it worked.. Not sure why connect didn't work..

but in QuickConnect - it didn't any entry made for this user.. any idea why??

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby Henrik » February 24th, 2017, 10:54 pm

If you use Basic authentication, QuickConnect isn't involved. You're supposed to be using Basic authentication if you have your own user database elsewhere, and can calculate auth hashes securely. (Otherwise anyone can log in as anyone else)
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: PlayerIO.connect error

Postby aseemgarg321 » February 25th, 2017, 6:19 am

Does basic Authentication Suppoer Other feature like -
Payvault, PlayerObject(DB calls), PlayerInsight, Notification, Achievements etc.. ??

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby Henrik » February 25th, 2017, 10:29 am

Yes. The only restriction is that some PayVault providers only work for users that have authenticated using the same system, so you can only make Facebook payments for Facebook authenticated users, and Steam payments only work for Steam authenticated users, etc.
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: PlayerIO.connect error

Postby aseemgarg321 » February 28th, 2017, 6:48 am

Thanks Henrik,

Any update on the PlayerIO.Connect error..

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: PlayerIO.connect error

Postby Henrik » February 28th, 2017, 8:43 pm

Don't use Connect, use Authenticate instead.
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect



cron