Reputation: 51
I have two android apps (app1 and app2), both of them are free but app2 contains an in-app-purchase upgrade.
Now I'm going to merge those two apps into the app1 (the one without the in-app-purchase).
My questions are:
How can I preserve the purchase that was already consumed in app2 so everyone who bought it will enjoy the upgrade on the combined app? I known I can share preferences, but I don't want to user to keep having both apps.
Let's say a user that purchased the in-app-purchase upgrade on app2 tries to install the new combined app1 into another device - how can I restore his purchase from app2 when it is not even installed on the other device (and probably won't be available on Google Play too)?
Thanks
Upvotes: 5
Views: 1241
Reputation: 4436
It is not possible via In-App purchases API, but there are a couple of ways to work around this:
Upvotes: 1
Reputation: 2256
Unfortunately, this is not possible. The in-app purchases are directly tied to the unique package-id used when the applications were first created.
The only way you could preserve app2's in-app purchase would be to merge app1 into app2, thus preserving the app's purchases. Finally, if that won't work, you'd have to hand roll a solution using a service other than Google Play Services.
Upvotes: 1