【问题标题】:How can i handle a local notification when the app is in the background and execute a function?当应用程序在后台并执行功能时,如何处理本地通知?
【发布时间】:2017-04-18 15:10:55
【问题描述】:

如何处理本地通知以从后台唤醒应用程序以执行所需功能而无需用户干预(即按下通知横幅)?有没有办法做到这一点?我需要执行一个功能,在收到通知后的特定时间打开 MPPlayer。

【问题讨论】:

    标签: ios objective-c swift3 notifications


    【解决方案1】:

    这是不可能的。我能想到的两个最接近的解决方案是 1) 从您的服务器管理的静默 远程 通知,或 2) 后台更新模式 - 您无法控制的时间。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-23
      • 1970-01-01
      • 2018-07-31
      • 2021-07-02
      • 1970-01-01
      相关资源
      最近更新 更多