Closed RoyiNamir closed 6 years ago
It seems that the API doesn't provide a way to catch the "already purchased" error It is thrown at global level.
How do you catch it ? I don't know what to show the user .. I need to detect this error
Got it.
After the promisiying API , I got it in the global catch :
... catch (e) { if ((e + "").toLowerCase() .indexOf("already purchased") > -1) }
It seems that the API doesn't provide a way to catch the "already purchased" error
It is thrown at global level.
How do you catch it ? I don't know what to show the user .. I need to detect this error