# Game Session invitations for GOG not working.

**URL:** <https://forums.unrealengine.com/t/game-session-invitations-for-gog-not-working/1756904>\
**Category:** C++\
**Tags:** onlinesubsystem, online, online-session, unreal-engine, CPP, question\
**Created:** [March 16, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/game-session-invitations-for-gog-not-working/1756904 "2024-03-16T20:32:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bojann](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bojann/32/906560_2.png) [@Bojann](https://forums.unrealengine.com/u/Bojann)\
**Post date:** [March 16, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/game-session-invitations-for-gog-not-working/1756904/1 "2024-03-16T20:32:49Z")

</div>

OK, this one is a bit optimistic to ask, but let me try :D.

So I have game published on Steam and GOG, and it has online multiplayer using Steam  
/ GOG sessions. Online multiplayer works perfectly, and there are no issues. Game is also published on Steam where game invitations work fine. What I do to send invitations, is open Invitations creen using this code. I have followed this [GOG doc](https://docs.gog.com/demo-invitations-implementation/#invitationscheckforinvitefromclient) for GOG.

```auto
	if (LobbyId == "")
	{
		return false;
	}
    const FString ConnectionString = "--JoinLobby=" + LobbyId;
	const char* Converted = TCHAR_TO_ANSI(*ConnectionString);
	galaxy::api::Friends()->ShowOverlayInviteDialog(Converted);
    return true;

```

Invite notification is shown, but when invitation is accepted, I get this error

```auto
LogOnlineSession: Warning: OSS: Failed to parse SessionID from game invitation: connectString=--JoinLobby=129366578591384110

```

I tried with these connect strings, and issue would remain the same

```auto
connectString=JoinLobby=129366578591384110
connectString=129366578591384110
connectString=--JoinLobby=129366578591384110

```

Was anyone able to get the session invitations to work on GOG, and what was the `connectString` format?

Thanks in advance
