Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
didReceiveLocalNotificationバックグラウンドでアラートを表示せず に呼び出すことはできますか?
didReceiveLocalNotification
悲しいことに方法はありませんUILocalNotication。アラート ビューでユーザーに通知するように設計されています。これが Apple が意図した動作方法です。
UILocalNotication
nil に設定notification.alertBodyすることもできますが、アプリケーションがアクティブでない場合、このローカル通知を使用することはできません。
notification.alertBody