1
アプリがバックグラウンドでも音楽が再生され、AVPlayer
が無効になったときに通知を送信したいと考えています(たとえば、ユーザーが上に乗っている別のアプリを使用している場合など)。Swift - AVPlayerがバックグラウンドモードでオーバーライドされたときに通知を送信するにはどうすればよいですか?
現在、私の解決策は、notification
を設定し、アプリは時間のx量の後にチェックインしていない場合、その後、notification
がオフになりますが、それはチェックインをした場合には、通知を削除し、別のものを設定しcheckInTimer
を使用することです。しかし、このソリューションは吸う..
アイデア?
これは非常によく働いた、ありがとうございました! – Charles