We are currently trying to get a list of offers from the App Store in our game to display to the users. However, we are struggling to find a way to use
const IOnlineSubsystem* const OnlineSubsystem = IOnlineSubsystem::Get(); IOnlineStoreV2Ptr* StoreInterface = OnlineSubsystem->GetStoreV2Interface(); // This returns null ptr on IOS const TSharedPtr<const FUniqueNetId> LocalPlayerUNID = IdentityInterface->GetUniquePlayerId(PlatformInterface->GetPlatformUserId()); // Therefore we cannot make a call to this, as cannot dereference the PlayerUNID StoreInterface->QueryOffersById(*LocalPlayerUNID, ...);
The main issue is we cannot get hold of a valid FUniqueNetId and therefore cannot make the calls to the StoreV2 functions. We know that the “QueryOffersById” in iOS doesn’t actually use the Unique Net ID, but unfortunately the function requires one.