我正在使用这个pushwoosh air ae: 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?

非常感谢。

有帮助吗?

解决方案

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

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

新的ANE已致力于Github repo。 要将警报添加“pushwoosh_show_alert”键进入Info.Plist文件,并使用布尔值为是或否。

谢谢!

Pushwoosh Team

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top