Forum Multiplayer [solved]Unity Player.io on Android 9 Not working

Discussion and help relating to the PlayerIO Multiplayer API.

[solved]Unity Player.io on Android 9 Not working

Postby pogsdbest » September 5th, 2018, 6:22 am

connecting to Player.IO using Android 9 phones will get this error.
"Cleartext HTTP traffic to api.playerio.com not permitted"


Code: Select all
PlayerIOClient.PlayerIO.Connect (
         gameID,
         connectionID,
         userID,
         null,
         null,
              delegate (Client client) {
         },
              delegate(PlayerIOError error) {
         Debug.Log ("Error " + error.Message);
         });


all android version lower than 9 is fine. Android phones like Pixel 2 XL will result to
"Error Unknown Error" due to "Cleartext HTTP traffic to api.playerio.com not permitted"
Last edited by pogsdbest on September 6th, 2018, 7:14 am, edited 1 time in total.
pogsdbest
 
Posts: 3
Joined: November 8th, 2016, 10:42 am

Re: Unity Player.io on Android 9 Not working

Postby Henrik » September 6th, 2018, 4:25 am

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

Set that property to true, and all API requests will be made using HTTPS instead, which should resolve this issue.

If you're having issues with the Multiplayer TCP connections as well, there is a similar property for switching them over to SSL as well:

https://playerio.com/documentation/refe ... onnections
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: Unity Player.io on Android 9 Not working

Postby pogsdbest » September 6th, 2018, 6:47 am

Thanks Henrik this solve the issue.
pogsdbest
 
Posts: 3
Joined: November 8th, 2016, 10:42 am


Return to Multiplayer



cron