The error object returned by Adapty is not of instance Error.
How to replicate:
try {
const result = await adapty.purchases.makePurchase(product); // have this function generate an error
} catch (error) {
console.log(error instanceof Error); // results in false
}
For us, this is a problem because Firebase Crashlytics only accepts error object with the Error instance. Now we had to find out that errors from clients are not monitored because the Adapty module does not have a correct instance type on its error object.
The error object returned by Adapty is not of instance Error.
How to replicate:
For us, this is a problem because Firebase Crashlytics only accepts error object with the Error instance. Now we had to find out that errors from clients are not monitored because the Adapty module does not have a correct instance type on its error object.