Skip to main content

Hi,

 

The Cordova plugin has this deprecation message:

 

This library is now deprecated. We suggest using our Capacitor SDK instead.

 

(from https://www.npmjs.com/package/cordova-plugin-purchases)

 

How would I use the Capacitor plugin in a Cordova app? I can’t find any instructions about how to do that. 

 

I did find https://github.com/ionic-team/capacitor-plugin-cordova-compat, but it says that the Capacitor plugin must have support for the Cordova compatibility layer. I can see that the RevenueCat Capacitor plugin doesn’t have this (see point 10 - the properties mentioned are missing from package.json).

 

It seems to me that Cordova is just simply no longer supported? That’s a bummer. If it is the case, the deprecation message should be fixed to say something like:

 

Capacitor uses should use the Capacitor SDK. Cordova support is deprecated

 

Thanks,

Graeme

 

Hi! Yes, we recommend using Capacitor instead in this case. I will reach out to the team internally about making the message more clear. There is documentation on how to migrate to Capacitor