Skip to content
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

How to do a phased rollout? #1615

Open
kyllerss opened this issue Oct 19, 2024 · 1 comment
Open

How to do a phased rollout? #1615

kyllerss opened this issue Oct 19, 2024 · 1 comment

Comments

@kyllerss
Copy link

I was hoping for some advice. I'm using a live URL in my app. I am seeing errors coming from clients that are still on the old build but are being served content from my servers that assumes they have the latest build.

This is not a major issue for me at the moment as most of my users are testers, but it does make me wonder about how phased rollouts are supposed to work.

The error people are running into is that the CdvPurchase namespace is not defined. Normally with a Capacitor plugin I can check to see if a plugin is available, but I didn't see a way of doing the same with cordova-plugin-purchase.

How can one test for the availability of this plugin in a phased rollout scenario?

@Dexus
Copy link
Collaborator

Dexus commented Oct 28, 2024

CdvPurchase.store.initialize(....).then(ok=>...).catch(err=>...)

You have to check if the Initialize was successfull and if not the plugin is not available or has a different error...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants