flex mobile支持应用内购买,推送通知等,可以在所有支持的移动平台(iOS,安卓,黑莓playbook)上运行。
谢谢
发布于 2012-02-04 22:22:52
目前“所有”原生移动功能都是通过AIR原生扩展来“支持”的。
您可以阅读有关AIR本机扩展here的文章
这是一个相当新的特性,但重点是,您可以在本机代码SDK和AIR应用程序之间创建桥梁。这意味着,您的应用程序将能够调用本机SDK,也可以接收来自本机SDK的事件。
基本上,如果您想要在Flex/AIR应用程序中呈现原生功能,您可以创建原生代码来实现您想要实现(在大多数情况下只需要很少的编码),使用ActionScript接口桥接它,并将其打包为.ane (air原生扩展)。此扩展的行为类似于actionscript库,如果感兴趣,您可以将其重用于所有Flex项目。
上面提到的链接也提供了一些例子-本机通知是其中之一……
因为它是一个相当新的功能,所以只提供了几个例子,但是为你想要的原生功能编写自己的原生扩展并不难--我自己做的,而且它起作用了……(here is simple native extension tutorial)
所以结果是-你可以在你的Flex应用中呈现任何原生功能,只要你有它的原生扩展…
发布于 2011-06-27 21:13:09
确实支持flex移动应用内购买,
未与本机存储“过程”集成。我听说你可以使用PayPal轻松地“构建自己的”;但这不是我个人调查过的事情。
push notification是的,应该是这样的。只要您连接到支持推送通知的服务器。BlazeDS和GraniteDS使用长轮询来实现这一点。WebORB和LiveCycle使用RTMP。
很难量化"etc“是什么意思。
发布于 2012-05-10 06:22:41
关于苹果推送通知的说明,以澄清来自www.Flextras.com的一个明显的误解:苹果不允许应用程序绕过an,实现自己的推送通知服务。请参阅下面的5.1点。
来自https://developer.apple.com/appstore/resources/approval/guidelines.html#push-notifications
5. Push notifications
5.1 Apps that provide Push Notifications without using the Apple Push
Notification (APN) API will be rejected
5.2 Apps that use the APN service without obtaining a Push Application ID from
Apple will be rejected
5.3 Apps that send Push Notifications without first obtaining user consent will
be rejected
5.4 Apps that send sensitive personal or confidential information using Push
Notifications will be rejected
5.5 Apps that use Push Notifications to send unsolicited messages, or for the
purpose of phishing or spamming will be rejected
5.6 Apps cannot use Push Notifications to send advertising, promotions, or direct
marketing of any kind
5.7 Apps cannot charge users for use of Push Notifications
5.8 Apps that excessively use the network capacity or bandwidth of the APN
service or unduly burden a device with Push Notifications will be rejected
5.9 Apps that transmit viruses, files, computer code, or programs that may harm
or disrupt the normal operation of the APN service will be rejected我目前正在使用这个开源的Flex在iOS中实现应用内购买:
http://code.google.com/p/in-app-purchase-air-ios/wiki/APIDescription
还有一个推送通知ANE (安卓和iOS),我目前正在研究,尽管它可能不支持远程通知:
http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/notification.html
这个iOS独有的用于推送通知的ANE是开源的:
https://stackoverflow.com/questions/6491300
复制相似问题