Vue/Capacitor in-app purchase plugin #4461
-
I’ve built a standard Vue app (using Vue CLI) and am using Capacitor 3 to generate native iOS and Android builds. I want to add an in-app purchase to my app so I followed the guidance in the Capacitor docs, which boils down to installing the Also, Xcode warns that the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just to say that I got this working by importing the Ionic Native wrapper import { InAppPurchase2 } from "@ionic-native/in-app-purchase-2";
const store = InAppPurchase2; Took me a while to figure out that I needed to drop the Angular-specific part of the import path to get this to work with Vue. After that it was pretty straightforward to use the documented methods. |
Beta Was this translation helpful? Give feedback.
Just to say that I got this working by importing the Ionic Native wrapper
in-app-purchase-2
like so:Took me a while to figure out that I needed to drop the Angular-specific part of the import path to get this to work with Vue. After that it was pretty straightforward to use the documented methods.