I'm working on an Android app which requires plugins. These plugins are essentially asset packs for my application to use. I'll probably be creating most of these asset package plugins initially, but I want other developers to be able to create (and sell) these asset packages for my app. If you need to, think of these asset plugins as texture packs for Minecraft. These asset packs will be around 50 MB each, so it doesn't make sense to package them with the app.
The way I WANT to do it:
The Problem
The problem exists at step 4. I can't find any way to query the store from within my app (even without wildcards). I did find this "android-market-api" project which would allow me to query the market from within my app, but it seems to require a Google Services username and password which I would have to query from the user. This is a non-starter.
Questions
- Is there an easy way to solve this problem and get market queries in a listing directly within my app?
No. This is not supported by Google and the Android API project is just a reverse engineering of the Protbuff objects that are used by the market. It can (and will!) break at any moment. Besides, it's most likely illegal. The better way is to emit a search query to the Playstore and let it handle it. It's not a big deal breaker because you will get a filtered list directly in the Playstore anyway. Don't reinvent the wheel.
- Is this the wrong way to handle application plugins?
No, it's fine and secure.
- Is there any way to use the existing In-App Purchase API to handle this without maintaining my own server for these packages?
No. You cannot see all purchases that a user has, only the ones that come from your own App.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With