Hi, Simon.
First off, thank you for IAP Badger, it’s a great product.
I’ve run into the following issue and am hoping you can help. Here is a summary:
*I installed and had IAP Badger running without any problems. At this time, I did not have the restore purchases feature hooked up.
*I deleted one of my IAP called buyEndlessMode with an Apple ID of 003_EndlessMode. I deleted any instance of this IAP from the user’s perspective, but there were still some behind-the-scenes associated variables used in my code that seemed to be harmless. I also deleted the 003_EndlessMode product from the Apple App Store.
*Everything worked fine after deleting 003_EndlessMode.
*Due to an unrelated issue, I had to delete and re-submit my IAP in the iTunes Connect. I resubmitted all my IAP with new Apple IDs and updated my IAP Badger code to reflect these new Apple IDs. My game ran fine on my phone, I was able to test in-app purchases and everything behaved as expected.
*I just implemented the IAP Badger restore purchases features.
*I built my app to my iPhone.
*I tested the restore feature on my phone and got the error:
"Runtime error
iap badger.storeTransactionCallback:
unable to find product
‘003_EndlessMode’ in a product for the apple store.
OK"
*When I clicked OK, my app crashed.
*I went back to my code and saw that some of the “harmless” remnants of buyEndlessMode were referenced in the restore code. I’m pretty sure this is what caused the error message to appear.
*After deleting the buyEndlessMode reference in the restore code, I rebuilt my app to my phone, but I still get the same error message as above as soon as my app starts and when I click OK the app crashes. Oddly, the variables buyEndlessMode and 003_EndlessMode and no longer used anywhere in my code and this product has been deleted from the Apple App Store.
Any ideas on how I can resolve this issue?
Thanks so much!
Teagen