-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration guide: @awesome-cordova-plugins to @revenuecat/capacitor-purchases [docs] #108
Comments
Looks like the package you're purchasing needs to be passed at a property inside an options object like so:
|
As one more note: this code/thread will be particularly helpful for anyone migrating from
...call this:
If I run into any other problems, I will report back. Thanks! |
Leaving open for visibility, maintainers, feel free to close if you don't think a meaningful subset of your users will want this! |
@mepc36 Hi! I had a question about the migration. I am using this code on a NextJS project: await Purchases.configure({ But getting this error: Do you maybe have any idea why it is not using Purchases instead of CapacitorPurchases? When using: CapacitorPurchases.setDebugLogsEnabled({ enabled: true }).then() The app crashes instrantly, what would be a correct and functioning code solution at this moment? |
@mepc36 thanks for sharing! Sorry for the delayed response, not sure how we missed this. @codykerns @tonidero we should have a section of the docs dedicated to this specific migration, I think @mepc36 is right and it'll be a common use case. @Martijn0405 I'd recommend performing a clean install:
|
Oh sorry we missed this! We have this doc with the changes in the API: https://github.com/RevenueCat/purchases-capacitor/blob/main/migrations/v6-MIGRATION.md, but we can add a link to that in the docs. Also, I think we might be able to explain a bit more about the changes in the doc |
Edit: Sorry, please ignore the above, you did mention you're coming from |
Hi, how do I solve an error message that says "Missing identifier parameter in {}"?
Here is how I'm initializing purchases in a hook:
This is how I get and set the purchases' offerings and customer Info:
Here is the code that runs when the "Purchase Package" button is clicked:
Here is what the offeringPackage log in the above code prints:
What am I doing wrong?
Thanks for the plugin!
The text was updated successfully, but these errors were encountered: