Forum Mobile AIR and QuickConnect

Everything mobile goes here.

AIR and QuickConnect

Postby Krin » September 23rd, 2012, 2:14 pm

Hi,

Is there any way to use QuickConnect with the AIR API? I could connect fine normally, but when I tried to use QuickConnect it threw me an error:

Connection Error: #1034 Coercion failed: cannot covert bridge::QuickConnect to bridge.PlayerIO

Am I doing something wrong, or am I simply not to use QuickConnect with the AIR API?
Krin
 
Posts: 3
Joined: September 8th, 2012, 11:00 am

Re: AIR and QuickConnect

Postby Benjaminsen » September 24th, 2012, 5:52 pm

AIR does not allow you to load 3rd party code thus the normal Player.IO bridge setup fails. However we do offer a flash SWC for paid members... which you are. Send me an email at chris@player.io for access
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: AIR and QuickConnect

Postby Krin » September 24th, 2012, 5:59 pm

I think I already did and you gave me a folder with the SWC :) I DID manage to set that up properly so it worked with my iOS device (like I could log on as a guest and play a game) but I wasn't able to use the QuickConnect login.

I'm not sure if I'm doing something wrong with the bridging - I just replaced the original Player.IO folder with the new one and linked the SWC into the IDE. But it DOES work if I connect normally (not using QuickConnect) - Just wondering how I can get an account system set up for AIR deployment.

Thanks!
Krin
 
Posts: 3
Joined: September 8th, 2012, 11:00 am

Re: AIR and QuickConnect

Postby Benjaminsen » September 24th, 2012, 6:31 pm

It absolutely should work with QuickConnect as well, could it be possible that you have embedded the playerio folder twice?
Once without using the updated API and once using the updated API?
Eg. loading your game into a loader etc?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: AIR and QuickConnect

Postby Benjaminsen » September 24th, 2012, 7:22 pm

Quick update.

In PlayerIO.as line 97, replace
Code: Select all
var api:bridge.PlayerIO = wrapper
with
Code: Select all
var api:* = wrapper
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: AIR and QuickConnect

Postby Krin » September 25th, 2012, 12:00 pm

Thanks Chris! It works perfectly now :)
Krin
 
Posts: 3
Joined: September 8th, 2012, 11:00 am


Return to Mobile



cron