x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.18
Tags:
more ▼

asked Apr 10 '18 at 12:43 PM in Using UE4

avatar image

WitekL
1 1 2 3

avatar image WitekL Apr 10 '18 at 09:35 PM

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.

avatar image Pataxu Aug 26 '18 at 09:46 PM

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?

avatar image WitekL Aug 28 '18 at 07:53 AM

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.

avatar image Pataxu Aug 28 '18 at 01:16 PM

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.

avatar image WitekL Aug 28 '18 at 03:30 PM

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.

avatar image Cyrille26 Apr 28 '18 at 10:05 AM

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.

avatar image WitekL Apr 28 '18 at 11:31 AM

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"?

avatar image Cyrille26 Apr 28 '18 at 11:47 AM

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

avatar image WitekL Apr 28 '18 at 12:33 PM

Ok, thanks.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question