破晓 发表于 2015-1-24 20:31:05

Adobe Notification通知 ANE(Android + IOS)

本帖最后由 破晓 于 2015-6-3 14:04 编辑

Adobe Notification通知 ANE(Android + IOS)

暂不支持64位



本资源来自:   ANE开源群 307700284

破晓 发表于 2015-6-3 13:59:48

发个支持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);

zhuhang426 发表于 2015-7-29 14:47:22

沙发的ANE试了下,通知图标显示并非应用的图标,而且关键是,下来通知条,然后点击通知内容不能跳转到APP程序上。求解决方案

lxz 发表于 2017-10-24 03:07:02

感谢分享!~
页: [1]
查看完整版本: Adobe Notification通知 ANE(Android + IOS)