0
iMessageは、リッチプッシュが画面上にあるときに更新します。ユーザーは今何を入力しているのかを見ることができ、あなたの会話にメッセージが追加されます。iOSアップデートでコンテンツ拡張子を入力する
質問:私が既にリッチプッシュを開いているときに、新しいプッシュ通知を取得する方法は? UNNotificationContentExtensionにイベントがあり、新しいものを捕捉してビューを更新しますか?
- (void)didReceiveNotification:(UNNotification *)notification
編集トリガーされます。:私は知っている唯一のものである
// This will be called to send the notification to be displayed by
// the extension. If the extension is being displayed and more related
// notifications arrive (eg. more messages for the same conversation)
// the same method will be called for each new notification.
- (void)didReceiveNotification:(UNNotification *)notification;
:UNNotificationContentExtensionプロトコルであることが見つかりました
を
それはうまくいくはずですが、とにかく私はこのイベントをキャッチできません。たぶん、私は何とか新しい通知を "関連する"現在表示させる必要がありますか?