Basically, i am using the api call and it works perfect. The only thing is that the displayname of the object has to be loaded in a UILabel. But it crashes the app. So i figured out why and it turned out that the result of purchaseItem does not show the same result that i am suppose to have according to the API call documentation. The debug console shows :
(
"<ItemInstance: 0x6000000f9680>"
).
Here is my code (XCODE obj C)
[[PlayFabClientAPI GetInstance] PurchaseItem:request success:^(PurchaseItemResult *result, NSObject *userData) { NSLog(@"%@", result.Items); NSLog(@"Clue bought."); } failure:^(PlayFabError *error, NSObject *userData) { NSLog(@"error %@",error.errorMessage); } withUserData:nil];