【问题标题】:Play sound at specific time when app is in background mode (iOS 7)在应用程序处于后台模式时的特定时间播放声音(iOS 7)
【发布时间】:2014-06-18 17:38:31
【问题描述】:

我需要在闹钟应用程序等特定时间播放声音,例如在 17:30、18:00、20:00 等。我尝试使用 UILocalNotifications,但没有足够的选项来自定义所有我需要。

有什么想法吗?

谢谢!

【问题讨论】:

    标签: background nsdate alarm audio


    【解决方案1】:

    很遗憾,这是不可能的——当您的应用程序不是第一响应者时触发用户刺激的唯一方法是注册通知。

    Check this out for more information on Push and Local Notifications.

    您要进行哪些自定义? iOS 通知不是非常通用,但可以自定义消息和声音等。

    【讨论】:

      猜你喜欢
      • 2011-08-15
      • 1970-01-01
      • 1970-01-01
      • 2017-05-24
      • 1970-01-01
      • 2017-04-14
      • 1970-01-01
      • 2013-04-20
      • 2014-11-12
      相关资源
      最近更新 更多