You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if the error is purely related to my code somehow, I couldn't find the cause for it in it yet at least. But I guess a safecall function should not be so picky? ;)
Anyway, if it ends up being my own code's fault, I'd be happy if anyone can point me in the right direction.
Using the latest release of the plugin as of writing: 13.10.1
Cheers.
The text was updated successfully, but these errors were encountered:
Hi, the plugin generally use "safeCall" to call callbacks provided by the user (your app), so they are "try-catched" with error properly logged and errors do not mess with the functioning of the plugin. Your code might have somehow registered a undefined callback to one of the events handlers... maybe. Or maybe there's a bug, but it's a single report so that's less likely. I added if (!callback) return; to that function, which seems like a good idea.
Following error occurs usually when starting the app:
undefined is not an object (evaluating 'callback.name')
Seems to be related to the safeCall funciton found in safe-callback.ts
This code seems to be the culprit:
found in
https://github.com/j3k0/cordova-plugin-purchase/blob/master/src/ts/utils/safe-callback.ts
Not sure if the error is purely related to my code somehow, I couldn't find the cause for it in it yet at least. But I guess a safecall function should not be so picky? ;)
Anyway, if it ends up being my own code's fault, I'd be happy if anyone can point me in the right direction.
Using the latest release of the plugin as of writing: 13.10.1
Cheers.
The text was updated successfully, but these errors were encountered: