Download

Android Billing ReadInAppPurchaseInformation2 Problem on 4.27

On UE 4.27 ReadInAppPurchaseInformation2 doesn’t work.

Engine\Plugins\Online\OnlineSubsystemUtils\Source\OnlineSubsystemUtils\Private\InAppPurchaseQueryCallbackProxy2.cpp

I found the UInAppPurchaseQueryCallbackProxy2::TriggerQuery() function has modified.

FUniqueNetIdRepl QueryingPlayer = PlayerController->GetLocalPlayer()->GetUniqueNetIdFromCachedControllerId();

if (QueryingPlayer.IsValid()) <<- this line uncommented on 4.27

I have two questions.

  1. Why the GetUniqueNetIdFromCachedControllerId() returns invalid QueryingPlayer.
  2. How can I make it valid.

Help me plz.