How to do an in app purchase in AIR for Android? - android

Is there a way to make in app purchases in an Android app? Specifically, my app has a flag, a application variable value, that differentiates it from free and paid. So I want to make my free the same as my paid app when they do an in app purchase. I also have a paid version on the market.
If the flag is set then paid functionality works in the free app. How would I enable this in an AIR app for Android?

You should use AIR Native Extension in order to be capable to use Android IAB in your AIR application. Here you can find a list of both commercial/free ANE providing several extensions, and some interesting link to tutorials and docs about that topic (eg: Using the In-App Billing Adobe AIR native extension for Android)
Another valuable resource is ExtensionsOfAir.com which provides a set of ANE developed and maintained by the community.

Related

Adobe AIR app with ALIPAY

we are developing an application for adobe air with in-app purchase
(of game add-ons).
we need to implement alipay inside the app.
I downloaded their documentations, it looks like there is no native extension for air.
i thought about using it with php + StageWebView (to show their UI for user paument) .
anyone here has an experience with Alipay + AS3?
Create an API on your own server that maps to the Alipay API or just hit the Alipay API directly. You shouldn't use a StageWebView for anything more than displaying a simple page since you have absolutely no control over it and cannot retrieve any data or response from the browser in your AS3.
If you are planning to upload this to the iOS App Store, you can't use Alipay. You must use Apple's In-App Purchase system. If you don't, Apple will reject your app. I don't know about the Google Play Store off the top of my head, but I believe it is recommended you do the same though not currently enforced the way Apple does. Additionally, it is natively supported and what users expect when using an Android or iOS device. There are various AIR Native Extensions (ANE) that you can use to implement that (just do some searching and you should find some)

Replacing a non-native app with a native app in android

I have a feeling I already know the answer to this, but I'm still hoping it's possible. Awhile back, I made an app for android using an Adobe Flash trial. Since then, I've made numerous similar apps in Android Studio, which look much nicer and don't require the user to download AIR. For whatever reason, the app I made in Flash is doing really well, despite the fact that it's easily the worst one I've made. What I'd like to do is replace the app with a remade, nicer looking, native version of it. Is this possible somehow?
Yes. The only requirements Google has for Google Play is that your application have the same package name (e.g. "com.example.myapp") and is signed with the same certificate. It also requires a new, higher version code and will prompt a user for a manual update if it requires additional permissions.
Google does not compare the contents of the APKs for similarity, so do what you want as long as you have your certificate.
But - is your "app" an app or a webpage? The Adobe AIR APK is a native app. They just provide a framework and toolset for constructing apps.
http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html
More specifically, Adobe uses the same distribution method for AIR apps as native apps, so re-distributing as a native app is possible:
http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac-77bd3ea112e2c0a7ed0-8000.html

Is it possible to create a freemium subscription HTML app?

In the past I've created native Android apps with in-app purchases and I know how relatively easy it is to query the Play Store to determine if a user has purchased an in-store item.
I'm looking to build another app but I would like to use freemium model in which a yearly subscription is paid for extra features. I would also like to make it using jQuery Mobile/PhoneGap so I can publish with the same codebase to iOS.
So I have two questions:
Is it possible to query Google Play (and the Apple App Store) to determine if a user has an active subscription using jQuery/PhoneGap?
Any caveats to this approach that I should know about before embarking on creating a hybrid app vs. just biting the bullet and creating two native apps?
Thanks!
It is possible to query GP or App Store using PhoneGap.
You will need a native plugin to do that. One for App Store you have here: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/InAppPurchaseManager
And here another for GP: https://github.com/phonegap/phonegap-plugins/tree/master/Android/InAppBilling
Answering to the second question: In my opinion based on experience if you are going to use more than one platform based feature it is easier to make two native apps than stuffing html app with plugins.

How to add in-app purchases for Android with Adobe AIR

I'm developing a game in Flash for mobile using Adobe AIR.I want to add in-app purchases for my game,specifically additional style packages that people can buy.I tried to find that information on Android Developers but it only describes the process of managing in-app purchases.
My question is,how do i implement this with Adobe AIR?I've heard of native extensions and stuff but i don't completely understand the product side:
Can players download the packages as spritesheets or can the packages be included in the game from the beginning but activated only when you buy them?
Thanks.
On Android you can do both: Include but deactivate or load it afterwards.
Regarding the requered ANE: Try this. This is a pretty good list for finding several ANEs

Does Android marketplace accept apps that are simply embedded websites (HTML/PHP etc.)?

I'd like to develop a "native app" for Android/IPhone.
To save development time, I would like to use an online HTML/PHP application to deliver the functionality and UI of the app. In Android, an embeddable browser can be achieved using WebView.
My app will not use any native-API specific functionality or devices(e.g. camera, geolocation).
Is it permissible to market an app Google Play that simply embeds a mobile friendly website?
Sure, why wouldn't it? There is no specific filtering, apart from the obvious malicious.
First off, this would not be a "native" app. It would be a cross-platform app.
There is no "Android Marketplace" -- do you mean the Google Play store? If so, yes, they will accept just about any app, provided you comply with their guidelines. For example, you can't sell in-app content through any means other than Google's own in-app purchasing.
That said, there's no solid php implementation for Android that I know of. The vast majority of the cross-platform apps utilize HTML/javascript. So much so, that there are quite a number of readily available frameworks available, such as PhoneGap, Sencha Touch, etc.

Categories

Resources