Skip to main content
Question

Using the Capacitor plugin in a Cordova app

  • October 17, 2024
  • 1 reply
  • 27 views

Forum|alt.badge.img+1

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

 

This post has been closed for comments

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 262 replies
  • October 21, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings