Question

App crashes with PurchaseCancelledError

  • 22 September 2021
  • 3 replies
  • 188 views

Badge +1

 

Above is the error message I get when cancelling the purchase (I cancel either pressing back button or by clicking anywhere else to dismiss the pop up). I am not sure why app crashes here. It is within the try catch statement and I have catch statement to handle error cases. Help would be appreciated. Thanks!


3 replies

Userlevel 4
Badge +9

What SDK, version, and platform are you using? Cancelled purchases do show up as errors but I would expect the catch statement to catch it. I’ll forward this to our mobile engineers once you share that extra info.

Badge +1

Hello Sharif, thank you for looking into this issue.

Yes, indeed. I was excepting the same scenario to catch this error by catch statement.

With respect to your question, I am currently testing on an android device, which is based on Flutter.

For the app itself, minSdkVersion is 21 and compileSdkVersion is 30.

Please let me know if you need any additional information from my end.

Thanks! 

Badge +1

Hello @sharif , forgot to link your name and as I couldn’t edit my reply, please find my below copied response from previous reply.


Hello Sharif, thank you for looking into this issue.

Yes, indeed. I was excepting the same scenario to catch this error by catch statement.

With respect to your question, I am currently testing on an android device, which is based on Flutter.

For the app itself, minSdkVersion is 21 and compileSdkVersion is 30.

Please let me know if you need any additional information from my end.

Thanks! 

Reply