You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.ObjectModel.Collection1[T].CheckWritable (IList1 list) [0x00000] in :0
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (.TKey key) [0x00000] in :0
at OnePF.OpenIAB_iOS.Sku2StoreSku (System.String sku) [0x00000] in :0
at OnePF.OpenIAB_iOS.consumeProduct (OnePF.Purchase purchase) [0x00000] in :0
at OnePF.OpenIAB.consumeProduct (OnePF.Purchase purchase) [0x00000] in :0
For IOS
When OnPurchaseSucceeded of OpenIABEventManager is called, have to change storeSKU to GameSKU.
So changed as follows :
OpenIABEventManager.cs
#if UNITY_IOS
...
...
private void OnPurchaseSucceeded(string json)
{
if (purchaseSucceededEvent != null)
{
//purchaseSucceededEvent(new Purchase(json)); // <-- have to change storeSKU to gameSKU.
purchaseSucceededEvent(new Purchase(new OnePF.JSON(json)));
}
}
...
...
#endif
Good luck!!!
The text was updated successfully, but these errors were encountered:
ikpil
changed the title
In ios, consumeProduct method is called when a crash bug !!!!
In ios, the crash occurred when consumeProduct method is called.
Jan 27, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.ObjectModel.Collection
1[T].CheckWritable (IList
1 list) [0x00000] in :0at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (.TKey key) [0x00000] in :0
at OnePF.OpenIAB_iOS.Sku2StoreSku (System.String sku) [0x00000] in :0
at OnePF.OpenIAB_iOS.consumeProduct (OnePF.Purchase purchase) [0x00000] in :0
at OnePF.OpenIAB.consumeProduct (OnePF.Purchase purchase) [0x00000] in :0
For IOS
When OnPurchaseSucceeded of OpenIABEventManager is called, have to change storeSKU to GameSKU.
So changed as follows :
Good luck!!!
The text was updated successfully, but these errors were encountered: