守望者--AIR技术交流

标题: Adobe Notification通知 ANE(Android + IOS) [打印本页]

作者: 破晓    时间: 2015-1-24 20:31
标题: Adobe Notification通知 ANE(Android + IOS)
本帖最后由 破晓 于 2015-6-3 14:04 编辑

Adobe Notification通知 ANE(Android + IOS)

暂不支持  64位
[attach]648[/attach]


本资源来自:   ANE开源群 307700284

作者: 破晓    时间: 2015-6-3 13:59
发个支持  64位的


1在AS3中创建Notification对象,并被NotificationManager类派发。

您可以用以下代码开始派发notification:

  1. private var notificationManager:NotificationManager

  2. protected function notifyUser():void
  3. {
  4.    if ( !this.notificationManager )
  5.    {
  6.       try {
  7.          this.notificationManager = new NotificationManager();
  8.       }
  9.       catch (ae:ArgumentError)
  10.       {
  11.          trace("The notification native extension has no support for this platform.");
  12.          return;
  13.       }
  14.    }
  15.    
  16.    var n:Notification = new Notification();
  17.    
  18.    n.tickerText = this.tickerText.text;
  19.    n.title = this.notificationTitle.text;
  20.    n.body = this.notificationBody.text;      
  21.    
  22.    this.notificationManager.notifyUser("MY_NOTIFICATION_TYPE",n);
  23. }
复制代码



[attach]1169[/attach]

本资源来自QQ群:56892018
贡献者:万马奔腾(QQ:59421724);


作者: zhuhang426    时间: 2015-7-29 14:47
沙发的ANE试了下,通知图标显示并非应用的图标,而且关键是,下来通知条,然后点击通知内容不能跳转到APP程序上。求解决方案
作者: lxz    时间: 2017-10-24 03:07
感谢分享!~




欢迎光临 守望者--AIR技术交流 (http://www.airmyth.com/)