简体   繁体   English

付费HTML5 iPhone / Android应用

[英]Paid html5 iphone/android app

I would like to develop an HTML5 app that I could then package and sell on android market and the app store. 我想开发一个HTML5应用,然后可以打包并在android市场和应用商店上出售。 I also want to make two versions of this app lite (with ads) and pro (paid). 我还想制作该应用程序精简版(带有广告)和专业版(付费)的两个版本。 When I think about it I have no idea how I can check whether the user has paid for an app (it will be a normal html5 with cache manifest for offline mode). 当我考虑它时,我不知道如何检查用户是否已为应用程序付费(这是脱机模式下带有缓存清单的普通html5)。 I need to check, because it will be site accessible to everyone. 我需要检查,因为每个人都可以访问它。

Is there any mechanism that can trigger db updates in my app when the purchase is complete? 购买完成后,是否有任何机制可以触发我的应用程序中的数据库更新? Eg save the apple userid when purchased and then check the userid when the user enters the site...probably not, but you know now what I am looking for. 例如,购买时保存苹果用户ID,然后在用户进入网站时检查用户ID……可能不会,但是现在您知道我在寻找什么。

How should it be handled? 应该如何处理? Does anyone have good articles/links covering this topic? 有人在这个主题上有好的文章/链接吗?

You are still going to need to develop an app for both iPhone and Android if you want to sell something on each of the stores. 如果您想在每个商店销售商品,仍然需要为iPhone和Android开发一个应用程序。 The app will be simple in your case, just a WebKit instance pointing toward your HTML5 site. 就您而言,该应用程序将很简单,只是一个指向您的HTML5网站的WebKit实例。 But the fact you have this app will allow you to track the paid state without gathering user-specific data (which you cannot have). 但是事实上,您拥有此应用程序后,您无需收集用户特定的数据(您无法拥有)即可跟踪付费状态。

Good Luck! 祝好运!

Urban Airship has an amazing library for in app purchases. Urban Airship拥有一个用于购买应用程序的出色库。 Have you taken a look? 你看了吗?

http://urbanairship.com/products/in-app-purchase/ http://urbanairship.com/products/in-app-purchase/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM