Download

Read In App purchase information returns mixed up 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_cardboardboxtitle: Buy Character - Mr Box (Swingers)
  • description: Buy the character ‘Mr Box’
  • price: £0.60
  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_flametitle: Buy Character - Blaze (Swingers)
  • description: Buy the character ‘Blaze’
  • price: £0.60
  • GooglePlayStoreHelper::QueryInAppPurchases - Parsing details for: swingers_buychar_greenmonstertitle: 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

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/UnrealEngine/commit/5ab386b5d84458c6c779ca7c940a2f9d531b234e.

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.

Hi Chris,

Great news!
Do you have a rough ETA for 4.12’s first preview?

Kind Regards,
Chris

Preview 1 is now available for 4.12.