Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
369 views
in Technique[技术] by (71.8m points)

android - Restore in-app purchases when same native (Apple/Google) account on device but different app accounts

You have a mobile app (Android/iOS) that requires the user to sign-in. The mobile app offers in-app purchases. A user makes an in-app purchase while * signed in as X on the device (Google account/iTunes account) * signed in as Y on the mobile app.

The user then * uninstalls the app * reinstalls it * signs in as Z on the mobile app * restores purchases.

What do the app stores (Apple/Google) expect us to do?

Do we have to restore the purchases to the Z app user even if the purchases were made by app user Y just because the native user is X?

We read the policies but can't tell for sure.

Can you help?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you have your own account based system, you aren't required to restore purchases from the device receipt if they can be restored by logging in to their (your) account. Apple vaguely mentions this in their docs as do service providers.

From Apple (their example is iOS/macOS but might as well be iOS/Android):

You could let users who have a subscription in an iOS app access the content from a macOS app (or vice versa), but implementing that functionality is your responsibility. You would need a system to identify users and keep track of the content they are subscribed to, similar to what you would implement for an app that uses non-renewable subscriptions.

From RevenueCat:

Using an externally managed App User ID also provides a mechanism by which to restore purchases in a few scenarios:

...

  1. When the user logs in on multiple devices - you can honor a subscription that was purchased on one device across any other platform.

You'll notice large, cross-platform, subscription apps like Netflix don't have a restore purchases button anywhere. As you've pointed out, restoring purchases could allow a single purchase receipt to be shared across multiple users that log-in on the same device.

Disclaimer: I work at RevenueCat


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...