How to start session on Android with enabled "Google Play Support"

Hi, I would like to get working server-listener functionality on the Android phone when the Google Play Support is included in a project.

It looks like everything is working on PC simulator but not on the phone. I am using UE4.18.3 version and standard UE4 “Create Session” node.

When I build project for Android phone without included Google Play Support everything is working on the phone but when the support in the “project settings → Platforms → Android → Google Play Services → Enable Google Play Support” is marked “on” then session creation always returns error.
It looks like some bug in the Unreal Engine 4 for me.

I try many solutions to get it working, searched many forums but nothing seems to work. Maybe someone have found some way to do that?

I would need just to get working the server-listener on the Android Phone with “Pay In App” functionality on the Google Play store but it seems to be impossible without “Enable Google Play Support” in the UE4.18.3.

1 Like

Ok, I think I’ve got it. Currently the UE4 allows to have loaded just one Online Subsystem so when I have set Google Play Subsystem then the OnlineSusbsystemNull is unloaded. I think it would be really handy to have the ability to be able to switch always to the Null system. It looks like I will have to code it in the C++ for my project.

The node “create session” is wrong with android. When you connect to google play service with node “show external login UI”, a session is already created. We do not need to create a other session.

I don t no. I no use Lan with my app.

Hi Cyrille26. Thanks for the answer. I will try your suggestion. What I understand the functionality of the server-listener should work on Android with the Google Play Support included so I should be able connect two phones together in the internal LAN even when the Google Play Support is “on”?

Ok, thanks.

That’s working? I’m on thas situation. When I enable Google Play Support, my LAN system just don’t works. I’m scared for lose admob, but I’m also scared for lose a great feature on my game. Tried to remove Google Play subsystem plugin, to see if it works. can you tell me how you did it?

Yes, I have working some solution around. The game is starting with working Android Play Subsystem and when player decides to play multiplayer then it’s switching to the Null Subsystem which is working for my LAN game on Android. I try many different solutions but it showed that only one is working for me and it needs to restart game so when switching between systems I am showing info that game will restart because of switching to multiplayer. I didn’t try it as Internet Multiplayer but it should work too.

How you did that?

Actually, for me, I’ve only disabled the Google Play Online Subsystem plugin and the game can create sessions, admob works, etc… But when I create a session the level bugs, the game sets to first person camera, becomes unplayable, etc… Solved by enterning to the editor, opening the multiplayer map to test, and packaged again and multiplayer works. I don’t know if remove Google Play Online Subsystem is the best option, but if I don’t use archievements it is, also I don’t know if it breaks the admob and doesn’t detect my Google account to pay me.

I have created a plugin in C++ witch makes possible in blueprint sets the flag of using google play support from settings. Thanks to this I can dynamically “switch on/off” google play support from the blueprint. To get this working is needed to restart a game after switching the flag to make engine read the file with changed settings. It makes engine not starting google play support and thanks to this is fully working the standard (null) internet subsystem. I am using “pay in game” functionality so when is needed it is possible to switch back to use the google play but of course it needs next restart of the game.

hey all can i want to make android multiplayer game but i dont understand how i can impliment android sdk and its done on android ?? or i need somthing

Generally UE4 is ready to deploy you game on Android. If you do know were to start I would suggest to read those tutorials at first:

Generally you will need:

  1. Install CodeWorks - important is not to downloading it from NVidia but use CodeWorks provided with UE4 (as for starting point)
  2. Set your Android device for developing.
  3. I would suggest to start with some simple project given with UE4 for ex. First Person Perspective Shooter. Do not make any changes to it just:
  4. Make settings in UE4 project for Android (in Project Settings).
  5. Build the project for Android.
  6. Deploy on your hardware.
  7. Read about multi player programing or easier watch on youtube. There are plenty very good tutorials.