Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

I want to have in-app purchases for my android puzzle game that will download files with additional puzzles from Google Play

Someone asked a similar question that was closed 5 years ago, and was told it's not possible at that time. Is this still the case? If so, how else can I do this? Thanks.

question from:https://stackoverflow.com/questions/65896948/i-want-to-have-in-app-purchases-for-my-android-puzzle-game-that-will-download-fi

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

1 Answer

0 votes
by (71.8m points)

Maybe try the following:

Include all puzzles in your free app

Set boolean locked = true and lock the payed puzzles if locked = true.

When your app starts, check if the app was purchased (see documentation)

If the app was purchased, set locked = false.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...