react-native-in-app-utils icon indicating copy to clipboard operation
react-native-in-app-utils copied to clipboard

Send "user_cancelled" error

Open RalfNieuwenhuizen opened this issue 7 years ago • 7 comments

Send "user_cancelled" error instead of "Cannot connect to iTunes Store" upon cancellation

RalfNieuwenhuizen avatar Aug 28 '17 10:08 RalfNieuwenhuizen

@chirag04 could you have a look at this and maybe merge it? in my case it solves the issue of app crashing when user cancels a purchase

raduflp avatar Nov 28 '17 14:11 raduflp

you this logic live in JS and in your product? regardless, you would have a if to check if user_cancelled. so might as well check for transaction code?

chirag04 avatar Nov 28 '17 15:11 chirag04

in my case for the user canceled scenario I could not capture a response or error in the JS jogic, even when surrounding the statements with try catch. It would always silently throw the error on the native side and crash the app.

Maybe someone else could test this scenario and share their experience

raduflp avatar Dec 01 '17 21:12 raduflp

i'm guessing you are hit by this one: https://github.com/chirag04/react-native-in-app-utils/pull/109

can you confirm the native error?

chirag04 avatar Dec 01 '17 21:12 chirag04

@raduflp, @chirag04 any update on this? I need this change to be merged. Currently, there is no way to identify whether the transaction really failed or was canceled by the user.

gontovnik avatar Dec 17 '17 15:12 gontovnik

Any plans to merge this?

I need to know whether the transaction was canceled by the user or there was an error.

soheilpro avatar May 19 '19 01:05 soheilpro

+1 to this feature request Now I'm using fork with this PR

nztf avatar Oct 25 '19 09:10 nztf