Android在应用内购插件? [英] Android In-App-Purchase of Plugins?

查看:171
本文介绍了Android在应用内购插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序需要的插件。这些插件基本上都是资产包为我的应用程序使用。我可能会创造大部分资产包插件开始,但我希望其他开发人员能够创建(和销售),这些资产包我的应用程序。如果需要,认为这些资产的插件,纹理包为的Minecraft。这些资产包将围绕50 MB每一个,所以它没有任何意义对他们的应用程序包。

我要做到这一点:

  1. 在开发者创建了一个名为插件资产APK一些具体的事情(org.name.app_name.plugin。{MY_ASSET_PACK})
  2. 在开发适用于自己的谷歌Play开发者帐户,并列出自己名下的资产包(免费或付费)的库和演示部分。
  3. 我的应用程序查询谷歌播放所有APK包(免费或付费)相匹配的查询字符串的(org.name.app_name.plugin。*)的,并列出它们在过滤 - 市场视图为用户的应用程序,让他们能够轻松地找到插件的应用程序。
  4. 的用户可以点击我的过滤市场视图这些条目,可以直接重定向到谷歌游戏市场,并通过游戏进行购买,而开发人员可以通过这一交易得到补偿。所购买的资产插件的apk被下载到用户的设备,并且不在启动器显示出来。 (请参阅<一个href="http://stackoverflow.com/questions/4803342/how-to-release-application-plugin-using-android-market">How为解除应用插件)
  5. 在我的应用程序的索引相匹配的查询字符串手机上的包(org.name.app_name.plugin。*),并将它们放在一个插件,选择视图为用户挑选。
  6. 在我的应用程序加载并使用资产这个插件(见<一href="http://stackoverflow.com/questions/4803342/how-to-release-application-plugin-using-android-market">How为解除应用插件)

问题

问题存在于第4步。我找不到任何方式(即使没有通配符)从我的应用程序查询商店。我没有找到这个安卓市场-API项目,这将让我查询从我的应用程序中的市场,但它似乎需要一个谷歌服务的用户名和密码,我会从用户查询。这是一个非起动

问题

  • 有一个简单的方法来解决这个问题,在我的应用程序得到市场的查询中的列表直接?
  • 这是错误的方式来处理应用程序的插件?
  • 有没有什么办法可以使用​​现有的应用程序内购买API来处理这种不维护自己的服务器,这些包?
解决方案
  
      
  • 有一个简单的方法来解决这个问题,并得到市场的查询的范围内我的应用程序直接上市?
  •   

没有。这是不支持由谷歌和Android API项目所使用的市场Protbuff对象只是一个逆向工程。它可以(和意志!)破在任何时刻。此外,它是最有可能是非法的。更好的方法是发出一个搜索查询到Playstore,让它处理。这不是什么大不了的事,因为断路器您将在Playstore得到一个过滤列表直接反正。不要重新发明轮子。

  
      
  • 这是错误的方式来处理应用程序的插件?
  •   

没有,它的精致和安全。

  
      
  • 有没有什么办法可以使用​​现有的应用程序内购买API来处理这种不维护自己的服务器,这些包?
  •   

没有。你不能看到用户有所有的采购,只有那些来自你自己的应用程序。

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:

  1. Developer creates plugin asset APK named something specific (org.name.app_name.plugin.{MY_ASSET_PACK})
  2. Developer applies for their own Google Play developer account and lists the asset pack (free or paid) under their own name in the "Libraries and Demo" section.
  3. My app queries Google Play for all apk packages (free or paid) which match the query string (org.name.app_name.plugin.*) and lists them in a "filtered-market-view" for users of the app, allowing them to easily find plugins for the app.
  4. The user can click on these entries in my "filtered-market-view" and be redirected directly to the Google Play market and make the purchase through Play, and the developer can be compensated through this transaction. The purchased asset plugin apk is downloaded to the user's device and does not show up in the launcher. (See How to Release Application Plugin)
  5. My app indexes the packages on the phone which match the query string (org.name.app_name.plugin.*) and places them in a "plugin-selector-view" for the user to pick.
  6. My app loads and uses assets from this plugin (See How to Release Application Plugin)

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?
  • Is this the wrong way to handle application plugins?
  • Is there any way to use the existing In-App Purchase API to handle this without maintaining my own server for these packages?

解决方案

  • 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.

这篇关于Android在应用内购插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆