【发布时间】:2013-11-28 22:18:17
【问题描述】:
我正在使用这个 PushWoosh AIR ANE:https://github.com/shaders/push-notifications-sdk/tree/master/SDK%20Sample%20Projects/AdobeAir/ANE-Pushwoosh/bin
当我的设备在应用程序处于前台时收到推送通知时,PushWoosh SDK 会自动显示带有通知内容和两个按钮的警报:“取消”和“确定”。
我做了一些研究并在 PushNotificationManager.h (PushWoosh iOS SDK) 中找到了这个:
//show push notifications alert when push notification received and the app is running, default is TRUE
@property (nonatomic, assign) BOOL showPushnotificationAlert;
不幸的是,我找不到使用 ANE(在 AS3 中)将此参数设置为 FALSE 的方法。 所以我想我应该自己编译 ANE。 我试过了,但我没能做到。我在编译过程中遇到错误:
android/src/com/arellomobile/android/push/ADMRegistrar.java:32: error: package com.amazon.device.messaging does not exist
所以我有两个问题:
1) 有什么方法可以防止 PushWoosh SDK 在应用程序在 SDK 外部的前台运行时在接收推送时显示警报(可能使用远程 API?使用本机扩展?)
2) 如果 1) 的答案是否定的,我该如何自己编译 ANE?
非常感谢。
【问题讨论】:
标签: ios actionscript-3 air push-notification pushwoosh