【问题标题】:application:handleActionWithIdentifier: not called应用程序:handleActionWithIdentifier:未调用
【发布时间】:2016-09-15 04:36:39
【问题描述】:

我正在尝试检测用户何时点击应用程序中的通知消息。但是,这个委托永远不会被调用。

我正在使用 Xcode 7.3.1。在 SDK 中,不推荐使用此方法。但在 Apple API 网站上,it is deprecated

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: ios apple-push-notifications appdelegate


    【解决方案1】:

    当我将 action.activationMode = UIUserNotificationActivationMode.Background 更改为时,它对我有用 action.activationMode = UIUserNotificationActivationMode.Foreground

    背景到前景

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-22
      • 1970-01-01
      • 2015-04-03
      • 2014-04-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多