Flex mobile 支持本机移动功能吗?

发布于 2024-11-17 11:04:37 字数 95 浏览 8 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

拍不死你 2024-11-24 11:04:37

目前,“所有”本机移动功能均通过 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...

昇り龍 2024-11-24 11:04:37

flex mobile 是否支持应用程序内
购买,

未与本机商店“程序”集成。我听说您可以使用 PayPal“构建自己的”,不会遇到太多麻烦;但这不是我亲自调查过的事情。

push notification

是的,应该的。只要您连接到支持推送通知的服务器即可。 BlazeDS 和 GraniteDS 使用长轮询来完成此任务。 WebORB 和 LiveCycle 使用 RTMP。

很难量化“etc”的含义。

Does flex mobile supports In-App
purchases,

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.

push notification

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.

Bonjour°[大白 2024-11-24 11:04:37

关于 Apple 推送通知的说明,旨在澄清 www.Flextras.com 中的一个明显误解:Apple 不允许应用程序绕过 APNS 并实施自己的推送通知服务。请参阅下面第 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

我目前正在使用这个开源 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:

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

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文