【勝手に意訳】iOs 8, start playing sound when in the background, alarm clock app
アラームアプリを作ろうとしていて、バックグラウンドでタイマーを動かして、なおかつ時間が来たらノーティフィケーション(もしくは短い音楽)でお知らせされるようにしようとしていて、めっちゃ詰まってました。
見つけた質問
audio - iOs 8, start playing sound when in the background, alarm clock app - Stack Overflow
My question is: how do you start playing sound after your app is already in the background ??
質問:アプリが既にバックグラウンドに行った後で、どうやって音を鳴らし始めますか?
キターーーーー!!欲しかった情報これやで!
となって、
var notif = UILocalNotification() notif.fireDate = self.datePicker.date notif.alertBody = "test" UIApplication.sharedApplication().scheduleLocalNotification(notif)
この辺からUILocationNottificationにたどり着いて、
一旦時間が来ると通知が来るようになました、とさ。
(UILocalNotificationにたどり着いてからノリノリでプログラム書いてたら
ブログのこと忘れて収集つかなくなりました)