External UI not supported (Google)

Hi there,

I’m trying to hook up the “Show External Login UI” to show a Google OAuth logiin for the the user.

I have done the following:
Setup an app within Google Play Store dev console: Google Play Console | Google Play Console
Setup the OAuth 2.0 Client and Server API keys
Setup the app signing

The app runs great, no complaints or anything that looks off.

I keep receiving “External UI not supported” in the logs (via logcat on my Android device) when trying to trigger the Show External Login UI blueprint function.

Log snippet:

2020-04-24 00:36:59.500 17496-17496/com.reef.game D/ViewRootImpl@80397c8[GameActivity]: ViewPostImeInputStage processPointer 0
2020-04-24 00:36:59.508 17496-17569/com.reef.game D/UE4: [2020.04.24-04.36.59:508][278]LogScript: Warning: Script Msg: External UI not supported by the current online subsystem
2020-04-24 00:36:59.628 17496-17496/com.reef.game D/ViewRootImpl@80397c8[GameActivity]: ViewPostImeInputStage processPointer 1
2020-04-24 00:36:59.698 17496-17496/com.reef.game D/ViewRootImpl@80397c8[GameActivity]: ViewPostImeInputStage processPointer 0
2020-04-24 00:36:59.711 17496-17569/com.reef.game D/UE4: [2020.04.24-04.36.59:711][290]LogScript: Warning: Script Msg: External UI not supported by the current online subsystem
2020-04-24 00:36:59.838 17496-17496/com.reef.game D/ViewRootImpl@80397c8[GameActivity]: ViewPostImeInputStage processPointer 1

In my AndroidEngine.ini:

[OnlineSubsystem]
DefaultPlatformService=Google

[OnlineSubsystemGoogle]
bEnabled=true
ClientId="ANDROID_CLIENT_ID.apps.googleusercontent.com"
ServerClientId="WEB_CLIENT_ID.apps.googleusercontent.com"
ClientSecret="WEB_CLIENT_SECRET"

[OnlineSubsystemGoogle.OnlineIdentityGoogle]
+ScopeFields="https://www.googleapis.com/auth/userinfo.email"
+ScopeFields="https://www.googleapis.com/auth/userinfo.profile"

In my DefaultEngine.ini

[/Script/AndroidRuntimeSettings.AndroidRuntimeSettings]
PackageName=com.nameof.game
GamesAppID=APPID_FROM_PLAYSTORE_CONSOLE
GooglePlayLicenseKey=SECRET_FROM_PLAYSTORE_CONSOLE

in DegaultGame.ini

[/Script/UnrealEd.ProjectPackagingSettings]
BuildConfiguration=PPBC_Shipping
ForDistribution=True

My Blueprint looks like this:

Do I need to initialize the OnlineSubystem in my GameMode class (c++)?

Any help would be appreciated.

1 Like

Hello,

I know it’s been a while, but have you tried using GooglePlay OSS instead of Google?

That’s what I am using right now and the External Login UI is properly working, logging me inside the GooglePlay account of my phone.

Also, by any chance, do you manage to create sessions properly using those OSS and on an Android package? I am facing issues with that.

(edit, ok actually I thought it was April 2022, not 2020 :3)

Hi! @Chimera_QQ Could you please describe how to log in with Google Play? I’ve been trying for weeks to set up this system, however nothing works. The log in window does not pop up at all