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.
Here is a 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:
Cheers