【问题标题】:PushWoosh AIR ane on iOS : disable alert on iOSiOS 上的 PushWoosh AIR ane:禁用 iOS 上的警报
【发布时间】: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


    【解决方案1】:

    我在github上看到问题已经解决了,所以我在这里发布链接:

    https://github.com/shaders/push-notifications-sdk/issues/32

    新的 ANE 已提交到 github repo。 要控制警报,请将“Pushwoosh_SHOW_ALERT”键添加到 Info.plist 文件中,布尔值为 YES 或 NO。

    谢谢!

    Pushwoosh 团队

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-15
      • 1970-01-01
      • 2014-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多