Flex mobile 支持本机移动功能吗?
Flex Mobile 是否支持应用内购买、推送通知等,可以在所有支持的移动平台(iOS、Android、Blackberry playbook)上运行。
谢谢
Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前,“所有”本机移动功能均通过 AIR 本机扩展“受支持”。
您可以在此处阅读有关 AIR 本机扩展的
信息这是一个相当新的功能,但重点是,您可以在本机代码 SDK 和 AIR 应用程序之间创建桥梁。这意味着,您的应用程序将能够调用本机 SDK,并且还可以从本机 SDK 接收事件。
基本上,如果您想在 Flex/AIR 应用程序中呈现本机功能,您可以创建本机代码来实现您想要的功能(在大多数情况下只需要很少的编码),将其与 ActionScript 接口桥接,并将其打包为 .ane (air本机扩展)。此扩展的行为类似于 ActionScript 库,如果有兴趣,您可以将其重用于所有 Flex 项目。
上面提到的链接还提供了一些示例 - 其中包括本机通知...
由于它是相当新的功能,因此只提供了很少的示例,但为您想要的本机功能编写您自己的本机扩展并不难 - 我自己做的它有效...(这里是简单的本机扩展教程)
所以结果是 - 你可以展示Flex 应用程序中的任何本机功能,只要您有本机扩展即可...
Currently "all" native mobile features are "supported" via AIR native extensions.
You can read about AIR native extensions here
It is quite a new feature, but the point is, you can create bridge between native code SDK and your AIR application. It means, your application will be able to make calls to native SDK, and also receive events from native SDK.
Basically, if you want to present native feature in your Flex/AIR application, you create native code to achieve what you want (does require only little coding in most cases), bridge it with ActionScript interface, and package it as .ane (air native extension). This extension behaves like actionscript library you can then reuse for all your Flex projects if interested.
Link mentioned above also presents some examples - native notification is amongst them...
Since its fairly new feature, there are only few examples presented, but its not hard to code your own native extension for native feature you want - i did it myself and it worked... (here is simple native extension tutorial)
So the result is - you can present any native feature in your Flex app, as long as you have native extension for it...
未与本机商店“程序”集成。我听说您可以使用 PayPal“构建自己的”,不会遇到太多麻烦;但这不是我亲自调查过的事情。
是的,应该的。只要您连接到支持推送通知的服务器即可。 BlazeDS 和 GraniteDS 使用长轮询来完成此任务。 WebORB 和 LiveCycle 使用 RTMP。
很难量化“etc”的含义。
Not integrated with the native store "procedures". I hear you can "build your own" using PayPal w/o much trouble; but It is not something I've personally investigated.
Yeah, it should. As long you're connecting to a server that supports push notifications. BlazeDS and GraniteDS use long polling to accomplish this. WebORB and LiveCycle use RTMP.
It's hard to quantify what "etc" may mean.
关于 Apple 推送通知的说明,旨在澄清 www.Flextras.com 中的一个明显误解:Apple 不允许应用程序绕过 APNS 并实施自己的推送通知服务。请参阅下面第 5.1 点。
来自 https://developer.apple.com/appstore/resources/ approval/guidelines.html#push-notifications:
我目前正在使用这个开源 iOS ANE 在 Flex 中实现应用内购买:
http://code.google.com/p/in-app -purchase-air-ios/wiki/APIDescription
我目前正在调查一个推送通知 ANE(Android 和 iOS),尽管它可能不支持远程通知:
http://www.adobe.com/devnet/air /native-extensions-for-air/extensions/notification.html
这个用于推送通知的仅限 iOS 的 ANE 是开源的:
http://flashsimulations.com/ 2011/12/16/apple-push-notification-service-native-extension-for-adobe-air/
A note on Apple push notifications to clear up an apparent misconception from www.Flextras.com: Apple does not allow apps to bypass APNS and implement their own push notification service. Please see point 5.1 below.
From https://developer.apple.com/appstore/resources/approval/guidelines.html#push-notifications:
I am currently using this open source iOS ANE to implement in-app purchases in Flex:
http://code.google.com/p/in-app-purchase-air-ios/wiki/APIDescription
There is a push notification ANE (both Android and iOS) as well that I'm currently investigating, although it may not support remote notifications:
http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/notification.html
This iOS-only ANE for push notifications is open source:
http://flashsimulations.com/2011/12/16/apple-push-notification-service-native-extension-for-adobe-air/