Read In App purchase information mixes data

Hi,

Using 4.11.2

I’m using the Read In-App purchase information node, connecting to Google Play servers.

I’m feeding the function an array of three strings and saving the array that’s returned. However, depending on the order of the initial array, the data in the function returns can be mixed up.

If I input the string array with these three strings

  • swingers_buychar_greenmonster
  • swingers_buychar_flame
  • swingers_buychar_cardboardbox

I get the following data (Keep in mind Cardboard box = Mr Box, GreenMonster = Plague Splasher and Flame = Blaze)

  • buychar_greenmonster Buy Character - Mr Box (Swingers) Buy the character ‘Mr Box’ �0.60
  • buychar_flame Buy Character - Blaze (Swingers) Buy the character ‘Blaze’ �0.60
  • buychar_cardboardbox Buy Character - Plague Splasher (Swingers) Buy the character ‘Plague Splasher’ �1.20

You can see that two pieces of data are mixed up. It’s returning the wrong ID with the rest of the data.

Now if I change the order of the strings in the array to this:

  • swingers_buychar_cardboardbox
  • swingers_buychar_flame
  • swingers_buychar_greenmonster

I get the following

  • buychar_cardboardbox Buy Character - Mr Box (Swingers) Buy the character ‘Mr Box’ �0.60
  • buychar_flame Buy Character - Blaze (Swingers) Buy the character ‘Blaze’ �0.60
  • buychar_greenmonster Buy Character - Plague Splasher (Swingers) Buy the character ‘Plague Splasher’ �1.20

Which is correct.

Also, when looking in the log, it seems the query is successful and returns the correct data. It just gets jumbled up when the function returns the array:

  • GooglePlayStoreHelper::QueryInAppPurchases
  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_greenmonster
  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_flame
  • GooglePlayStoreHelper::QueryInAppPurchases - Querying swingers_buychar_cardboardbox
  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_cardboardbox
    title: Buy Character - Mr Box (Swingers)
  • description: Buy the character ‘Mr Box’
  • price: £0.60
  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_flame
    title: Buy Character - Blaze (Swingers)
  • description: Buy the character ‘Blaze’
  • price: £0.60
  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_greenmonster
    title: Buy Character - Plague Splasher (Swingers)
  • description: Buy the character ‘Plague Splasher’
  • price: £1.20
  • GooglePlayStoreHelper::QueryInAppPurchases - Success!

Any ideas why the data being returned in the array is mixed up?

Cheers,
Chris

After adding some more in app purchase information, it gets mixed up even more:

String Array:

  • swingers_buychar_cardboardbox (mr box)
  • swingers_buychar_flame (blaze)
  • swingers_buychar_greenmonster (plague)
  • swingers_buychar_carlos (carlos)
  • swingers_buychar_cubus (holy box)

Returned Data:

  • buychar_cardboardbox Buy Character - Mr Box (Swingers) Buy the character ‘Mr Box’ �0.60
  • buychar_flame Buy Character - Carlos (Swingers) Buy the character - ‘Carlos’ �0.60
  • buychar_greenmonster Buy Character - Holy Box (Swingers) Buy the character ‘Holy Box’ �1.20
  • buychar_carlos Buy Character - Blaze (Swingers) Buy the character ‘Blaze’ �0.60
  • buychar_cubus Buy Character - Plague Splasher (Swingers) Buy the character ‘Plague Splasher’ �1.20

From Chris Babcock:

Hi Chris,

There is a bug with the QueryInAppPurchases in 4.11. It is fixed in 4.12 preview 1, or you can look at this GitHub commit: https://github.com/EpicGames/UnrealE...0a2f9d531b234e.

Since this is a Java file and it recompiled on packaging for Android, you can just replace the Java file in your 4.11 engine directory with this one.