Adobe Notification通知 ANE(Android + IOS)
本帖最后由 破晓 于 2015-6-3 14:04 编辑Adobe Notification通知 ANE(Android + IOS)
暂不支持64位
本资源来自: ANE开源群 307700284
发个支持64位的
1在AS3中创建Notification对象,并被NotificationManager类派发。
您可以用以下代码开始派发notification:
private var notificationManager:NotificationManager
protected function notifyUser():void
{
if ( !this.notificationManager )
{
try {
this.notificationManager = new NotificationManager();
}
catch (ae:ArgumentError)
{
trace("The notification native extension has no support for this platform.");
return;
}
}
var n:Notification = new Notification();
n.tickerText = this.tickerText.text;
n.title = this.notificationTitle.text;
n.body = this.notificationBody.text;
this.notificationManager.notifyUser("MY_NOTIFICATION_TYPE",n);
}
本资源来自QQ群:56892018
贡献者:万马奔腾(QQ:59421724);
沙发的ANE试了下,通知图标显示并非应用的图标,而且关键是,下来通知条,然后点击通知内容不能跳转到APP程序上。求解决方案 感谢分享!~
页:
[1]