Hang when calling GKLocalPlayer.Local.FetchItems();

public async void FetchItems()
{
    try
    { 
        var fetchItemsResponse = await GKLocalPlayer.Local.FetchItems(); 
    } 
    catch(GameKitException exception) 
    { 
        Debug.LogError(exception); 
    } 
}

App hangs when calling GKLocalPlayer.Local.FetchItems(); No exception is caught.

Apple.Core and Apple.GameKit plugins have been included in our project

Reproducible with

https://github.com/apple/unityplugins

Both Unity 2020 and Unity 2021

iOS and tvOS

Xcode Version 13.4.1

Hi there. I'm also having this problem. May I know if you solved this?

Hi, I'm also having this issue. Did either of you find a solution?

Same here. Any solutions yet?

Same but it crashes the app. Using XCode 14.1

Is there anyone in the Apple Dev Team that can help??

  • MacOS 12.5 Monterey
  • Unity 2021.3.4f1
  • XCode 14.2
  • AppleCore Unity Package - 1.0.2
  • AppleGameKit Unity Package - 1.0.3
  • Crashes when calling FetchItems in Unity
  • Installed in iPhone XR (iOS 15.2.1)

I am also facing the same issue, did you resolve the issue, ?

Apple GameKit can only work on Unity Version 2020.3.33, is there any other new version of this plugin? I want to be able to use a more recent version of Unity. https://github.com/apple/unityplugins

Hang when calling GKLocalPlayer.Local.FetchItems();
 
 
Q