Why my In-App-Purchases suddenly became mixed up?

Hello everyone,

I have several apps running which have many IAPs. For instance:

  • Button A > price A > unlocks feature A
  • Button B > price B > unlocks feature B
  • Button C > price C > unlocks feature C

It works fine for years. But, since a few weeks ago (I guess), without me changing anything, everything is mixed up with no particular order pattern:

  • Button A > price C > unlocks feature C
  • Button B > price A > unlocks feature A
  • Button C > price B > unlocks feature B

The strangest part is when I build the apps in Xcode and run on my device, everything is working fine. The code is the same that is live since I have not updated any of the apps. This bug only appears on the apps downloaded from the App Store.

The products ID are also unchanged on App Store Connect. Actually, I noticed that App Store Connect has been updated recently. Is that somehow linked to this?

Please, does anyone know something on how to solve this? It completely messes up the user experience. Thank you very much.

I had the same problem.

I recently had the same problem. I noticed the bug when a paying user pointed out the bug to me.

If it works properly

Item A - Price A - unlock function A

Item B - Price B - unlock function B

Item C - Price C - unlock function C

In case of abnormality

Item A - Price C - unlock function C

Item B - Price B - unlock function B

Item C - Price A - unlock function A

Unintended display and operation will occur in this way.

In-App-Purchases process for the app has not been changed and has always worked fine.

Using the same app version, I checked on an actual iPhone. The app was displayed normally on iOS 14.8.1, but anomalies occurred on iOS 15.4.1 and iOS 15.5.

I am having a very hard time. I don't think the problem is on the application side, but I would like to know if there is a solution.

Hi,

i am having the same problem. My In-App-Purchases are completely mixed up if the App is downloaded via the AppStore. If i run the app locally via XCode everything works fine. Anybody having news on this? We are getting quite a lot of customer complaints.

Hi there,

After some further research, I have found the cause of the problem.

For any reasons, the order in which App Store Connect returns the list of products may change in time. So in your code, if you fetch the products with an index (product0, product1, etc.), your products and IAPs will probably be mixed up. Don't rely on how it displays locally via Xcode, for things might change once on the production environment.

To solve this, use product identifiers to identify, display and purchase your products, rather than a list index.

May this be useful.

Why my In-App-Purchases suddenly became mixed up?
 
 
Q