Forum Multiplayer iOS Won't Connect via AS3 Client

Discussion and help relating to the PlayerIO Multiplayer API.

iOS Won't Connect via AS3 Client

Postby RossD20Studios » May 12th, 2018, 12:36 am

I'm unable to connect to PlayerIO service when building my game using Adobe AIR and running on iOS.

I'm using PlayerIO.authenticate method and receive the following error:
MP Client Errior errorTye: Error: The method requested is not supported message: [PlayerIOError] Error #2032: Stream Error. URL: http://api.playerio.com/api/13

I suspect the issue may have something to do with the URL being "http" instead of "https" as I discovered in the steps prior to getting here that I needed to update my own server's URL from an http to an https in order to retrieve the user's auth token from my PHP script. Flash returned the same "steam error" for me when I used an "http" url which is the result of Apple now requiring that all server calls be done through https.

How soon can we get a patch and/or access to the PlayerIO SWC source so I can fix this issue? I owe my Kickstarter backers a release of the game, and I can't deliver until this connection is working.

Very much appreciated,

~Ross
RossD20Studios
 
Posts: 22
Joined: May 17th, 2017, 12:15 am

Re: iOS Won't Connect via AS3 Client

Postby KDNGAMES » May 12th, 2018, 5:16 am

I will tell you right now building apps with AS3 for iOS is a nightmare
I gave up on that a long time ago because iOS and apple absolutely hate flash
Now that flash updates are over, apple is most likely going to find a way to kill AS3 compatibility like they have been trying to do for years, only this time there wont be any updates to fix the incompatibility.

I highly recommend getting away from AS3 if youre designing specifically for iOS
Wish I could help though
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: iOS Won't Connect via AS3 Client

Postby RossD20Studios » May 12th, 2018, 8:25 am

KDNGAMES wrote:Now that flash updates are over, apple is most likely going to find a way to kill AS3 compatibility like they have been trying to do for years, only this time there wont be any updates to fix the incompatibility.


I'm building cross-platform with Adobe AIR (separate from Flash player), which Adobe is continuing to support on iOS. The runtime is compiled to an iOS binary, so AS3 compatibility isn't an issue. Rather, I suspect based on the error code and similar issues I've experienced, that the problem is likely that the PlayerIO client is using non-secure PHP or other server language references using non-secure HTML links (ex: http://api.playerio.com/api/13) instead of the secure version (https://api.playerio.com/api/13) which does appear to be a valid pointer. If that's true, other clients using the same URL pointers (ex: Unity) would experience a similar blocked connection on newer iOS devices which are now requiring the HTTPS protocol to interface with servers. A possible resolution may be adding the "s" to those "http" URLs.

KDNGAMES wrote:Wish I could help though


Which PlayerIO client are you using? It would be helpful to test if this issue is occurring on the other SDKs as this might accelerate a resolution :)
RossD20Studios
 
Posts: 22
Joined: May 17th, 2017, 12:15 am

Re: iOS Won't Connect via AS3 Client

Postby KDNGAMES » May 12th, 2018, 9:28 am

RossD20Studios wrote:I'm building cross-platform with Adobe AIR (separate from Flash player), which Adobe is continuing to support on iOS.


Yes, I know. AIR is still AS3 though, which apple hates. Back in 2013 I started a basic gaming app for a client who later wanted to have it ported to iOS. So instead of rewriting the entire app in a better language for iOS., I being a nice guy and not wanting to charge the client twice for the same app, had decided I would just try to publish it in AS3. Everytime apple comes out with a new update I think they purposely target apps made with AS3. I'm not saying it's impossible, but youre going to run into issue after issue after issue. It ended up taking me literally 3 months to get everything according to apple's "standards" to finally get them to publish the app, and then a week later they came out with an update that made the app throw a bunch of errors and apple wont allow apps to stay on the store if they are having issues like that so I had to fix the issues before it could go back up. Turns out that adobe hadnt created a solution for apple's little update yet so we had to wait another 3 months before they finally came out with a fix. After that we still continued to have similar issues so we abandoned AS3 and I rewrote the app in a better language for iOS.

RossD20Studios wrote:Which PlayerIO client are you using? It would be helpful to test if this issue is occurring on the other SDKs as this might accelerate a resolution


I am also using AS3, let me know what I can do to help
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: iOS Won't Connect via AS3 Client

Postby Henrik » May 13th, 2018, 5:12 am

https://playerio.com/documentation/refe ... piRequests

Set that property to true, and all API requests use HTTPS.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: iOS Won't Connect via AS3 Client

Postby RossD20Studios » May 14th, 2018, 11:21 pm

Henrik wrote:https://playerio.com/documentation/reference/actionscript3/playerio.playerio#useSecureApiRequests

Set that property to true, and all API requests use HTTPS.


This worked! Thank you so much for the prompt reply, Henrik!
RossD20Studios
 
Posts: 22
Joined: May 17th, 2017, 12:15 am

Re: iOS Won't Connect via AS3 Client

Postby robscherer123 » May 15th, 2018, 6:57 pm

My MMO I have up and running uses AS3 on IOS. It's def possible, just set the useSecureAPIRequests property to true and that should pretty much solve it.
robscherer123
Paid Member
 
Posts: 313
Joined: December 12th, 2012, 8:46 pm


Return to Multiplayer



cron