I’m trying to get iOS in app purchases up and running but stumbling about the lack of an online subsystem (not getting as far as the store).
This fails:
IOnlineSubsystem* pSubSystem = IOnlineSubsystem::Get();
if (pSubSystem)
{
DefaultEngine.ini contains:
[OnlineSubsystem]
DefaultPlatformService=IOS
[OnlineSubsystemIOS.Store]
bSupportsInAppPurchasing=True
Project.Build.cs contains the following:
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "RHI", "OnlineSubsystem", "JSon", "RenderCore", "Paper2D" });
PrivateDependencyModuleNames.AddRange(new string[] { });
if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))
{
if (UEBuildConfiguration.bCompileSteamOSS == true)
{
DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
}
}
else if (Target.Platform == UnrealTargetPlatform.IOS)
{
if (UEBuildConfiguration.bCompileSteamOSS == true)
{
DynamicallyLoadedModuleNames.Add("OnlineSubsystemIOS");
}
}
Early output contains information about a failed subsystem init:
Any help much appreciated - its late so I’m hanging up my boots and having a go again in the morning!