Solved

App crash on purchase in certain countries (Russia, China, South Korea, Thailand, Japan, and Bulgaria)

  • 17 September 2021
  • 3 replies
  • 186 views

Badge +6

We’re having an issue that seems to only be present in certain foreign markets. So far, we’ve received reports in: Russia, China, South Korea, Thailand, Japan, and Bulgaria.

Everything seems to be working well in other regions.

The issue is that when a user selects a package to purchase, whether this individual user is on iOS or Android, clicking to purchase the package, which uses the purchases_flutter library, crashes the app and presents the default error screen. 

Any ideas as to things we may be doing wrong?

icon

Best answer by Cory 20 September 2021, 02:56

View original

3 replies

Userlevel 5
Badge +9

I’ve never heard of anything like this before. Getting some crash logs should definitely help. It could be a case where maybe something is unexpectedly null in those countries and causing the crash.

Do 100% of purchases fail in those countries? If so, then it could be something related to your app or product configuration like trying to purchase a product that isn’t listed in those countries.

If some purchases are succeeding, but others are causing crashes, then maybe there’s some network request that’s failing (connectivity can be worse in those regions) beforehand. 

Hard to say without logs.

Badge +6

We are a premium only application, and the purchase is for the subscription to gain access. Everything we have managed in the Google Play Console and App Store Connect is set-up for all countries.

The only thing we pull off of the awaited purchaserInfo is the entitlements, to check them out before forwarding users into the application. But, the app doesn’t actually make it that far, the crash happens before the platform dialogs for making the purchase even pop up. We also perform a null check on the package before attempting to purchase it.

We will be pushing out an update soon to get log collection for this code path, and will have more data on the percentage of users affected in a couple days, as we just launched yesterday.

Badge +6

Quick update, we resolved the issue! We didn’t originally understand that the packages (before purchase), would use localized values in their string representation, so we performed some erroneous formatting under false assumptions.

All good! Thanks for the wonderful service you provide, it’s very helpful for our business.

Reply