cordova-plugin-inapppurchase icon indicating copy to clipboard operation
cordova-plugin-inapppurchase copied to clipboard

[Android] How to pass in Android developer payload and oldPurchasedSkus (i.e. extra data)?

Open Defcon0 opened this issue 7 years ago • 7 comments
trafficstars

Hello,

I have a backend where users can create an account.

Since this is essential in order to avoid restoring subscription purchases for more than one account in my backend service: How can I pass in Android developer payload and oldPurchasedSkus (i.e. extra data) to the Android subscribe interface?

I see in the Android code this is already implemented but I can't see any chance in the JavaScript.

Thanks in advance.

Bye Defcon0

Defcon0 avatar Mar 01 '18 15:03 Defcon0

I also need to know how to do this. @Defcon0 did you ever figure out a solution? Thanks!

lincolnthree avatar Jun 06 '18 22:06 lincolnthree

Unfortunately not. @AlexDisler doesn’t seem to maintain this repo anymore. What a shame!

I ended up using this plugin only for iOS and the other one for Android. Not cool but working.

Defcon0 avatar Jun 06 '18 22:06 Defcon0

:( Yeah. I'm spending the day trying to figure out https://github.com/j3k0/cordova-plugin-purchase

API is a bit more opaque, but seems like it handles the necessities for recurring subscriptions.

lincolnthree avatar Jun 07 '18 13:06 lincolnthree

@Defcon0 Is that the plugin you ended up using on Android?

lincolnthree avatar Jun 07 '18 13:06 lincolnthree

Yup this it. But the plugin threw exceptions over exceptions on iOS for me so I had to use this plugin here for iOS

Defcon0 avatar Jun 07 '18 13:06 Defcon0

Oh boy :(

lincolnthree avatar Jun 07 '18 14:06 lincolnthree

Yup, purchase was by far the most annoying part of the app development. Hopefully we don‘t get some api change and these plugins don’t work anymore

Defcon0 avatar Jun 07 '18 14:06 Defcon0