Adobe AIR app with ALIPAY - android

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)

Related

Control web apps via Google Assistant

I am evaluating whether to build a native Android app vs. a progressive web app (PWA). PWAs seem to gain a lot of traction recently, and especially on Android with Chrome (+ Desktop) seem to support a lot of functionalities and access to device APIs.
What I can't find anything about:
Is it possible to integrate a PWA with Google Assistant the same way as a native app? Assume I want to build an Audio app, can I make it work with Google Assistant even in the form of a PWA? Not talking about just having the assistant open the app - it should be able to also handle request such as "play 50 cent on app_name" etc.
Besides the voice assistant integration, any other thoughts on why I should or should not build a PWA vs. a native Android app?
Thanks a lot in advance!!
Actions that can interact with web apps via voic ewill only be approved for games at the current time.

Native iOS and Android App Running Remote Web App Inside a WebView

I am about to start a project to develop app that will run on iOS and Android. Most of the functionalities are very basic. Creating membership, login, viewing some content, entering forms data etc. However, there will be many pages. It is like a Web Site. iOS and Android App will have same functionalities.
I am considering developing this as Web App then creating a native iOS and Android App with a WebView. In that case, my users will download the apps from App Store and Play Store but my Web App will work inside that native apps.
I am willing to do that because apps functionalities will be same and there many simple pages in the apps. This will give me huge benefits. For example, i will implement once and use it in two different app, create new releases mostly without publishing the apps again etc.
I am planning to implement mobile app related things on the native apps like Push Notifications, Crash Reporting, Google Analytics etc. and rest of the functionalities in the Web App
Is this a common practice?
Is there any name for it? (I believe this is not a Hybrid App since Web App will be remote on the cloud)
What are the possible technical difficulties?
What other technologies i need?
How can i done Authentication / Authorization securely (My users will login to app once and then use it without login each use of the app)
Is there any rule against it? Like does the Apple App Guideline allow it?
Is there any framework to use for such need?
Thanks
I wouldn't recommend you to build a native app just for the use of a wrapper. In this case it is better to write a responsive web app. You can bookmark the website on your home screen and it will use the favicon as the apps icon.
Check out progressive web apps. This may be what you are looking for:
Progressive Web Apps

Spotify Android integration, Is it possible to preview track without Premium account?

In spotify web-api it is possible to preview track for 30 sec. So, I want to know, is it possible to implement this functionality using spotify android sdk. I was unable to find any Classes or methods related to that and also want to know if this functionality is available in spotify android sdk, then can we test it without spotify Premium account?
OR
Is it possible to use Spotify Web Api in android app?
Any help would be appreciated. Thanks in advance.
The Spotify native SDKs only use a "native" component for playback of full-length songs. The correct, officially-supported way of looking up metadata etc is to use the Web API. The iOS SDK provides a wrapper for this, but the Android SDK doesn't (yet).
Therefore, yes, you should use the Web API in your Android app. Since the Web API allows 30-second previews without authentication, you can do that in your app too.
Since the Android SDK doesn't include wrappers for the Web API at the moment, you'll need to build them yourself. The Spotify Web API is just a standard JSON/REST API - there's nothing special about it - so any Android JSON/REST library should be able to interact with it just fine.

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.

Looking to build a Android App, which syncs to App Engine datastore (python)

I am looking into building an android app, which holds some simple data (probably stored in sqlite). I also have a app engine app which I intend to be an online data store for the information (the app engine app is wrote in python).
The question here is, what is the best way to authenticate a user with the app and how to get the data from the android app to the Google data store?
Thanks
Mike
You could use Google Account authentication and follow this useful post about Authenticating against App Engine from an Android app
You can also give a look at the SampleSyncAdapter sample from the SDK
If you want to authenticate using OAuth, you can do that. The only trick is that you need to launch the flow in an internal WebView, because App Engine's OAuth implementation doesn't allow custom protocols in the redirect. I recommend the Signpost library. If you'd like an example, the 2cloud Android client is licensed under the MIT license (full disclosure, I'm the lead dev for 2cloud). The benefit of this is it allows you to support Android 1.5 and higher. The Accounts API is only supported starting in 2.1.
Another option is the Accounts API. #systempuntoout has good links for that, so I won't reinvent the wheel here.
Finally, it might be worth taking a look at the App Engine-powered Android Eclipse project that was demo'd at I/O this year. It makes keeping code in sync and shared between the two simple. Only downsides are it requires Android 2.2 or higher, and it requires you to write in Java on the App Engine side and GWT for the client side.

Categories

Resources