Forum Multiplayer Android HTTPS

Discussion and help relating to the PlayerIO Multiplayer API.

Android HTTPS

Postby Bestlis » February 18th, 2021, 1:31 pm

I try to connect from android native app to PlayerIO server using android 10.
Android 9 and later support only https connection.
I can't find, where I can set userSecureConnection like in Unity3d version.
Does android library support HTTPS connection?

P.S. When I run application I get error:
PlayerIO ErrorCode: GeneralError: com.playerio.PlayerIOError: Cleartext HTTP traffic to not permitted
Paid Member
Posts: 13
Joined: August 6th, 2014, 3:00 pm

Re: Android HTTPS

Postby batkins2 » July 4th, 2021, 4:05 am

I'm running into this issue as well. Is a fix in the works?

EDIT: Workaround for now, in the AndroidManifest.xml, add <application android:usesCleartextTraffic="true">.
Posts: 3
Joined: March 28th, 2021, 9:05 pm

Re: Android HTTPS

Postby Henrik » November 16th, 2021, 9:56 pm

Hey guys,

The Android client library in the latest SDK now has support for Secure API Requests and Secure Multiplayer Connections.

You only need to enable it for API requests to be able to remove the cleartext http override from your manifest, secure multiplayer connections are still optional on Android.
Posts: 1879
Joined: January 4th, 2010, 1:53 pm

Return to Multiplayer