notification-content-extension

iOS update push in content extension

时光总嘲笑我的痴心妄想 提交于 2020-03-21 05:16:13
问题 iMessage updates the rich push when it's on the screen. You can see what is user is typing RIGHT NOW, and message will be added to your conversation. So the question is: how i can catch new push notification, when i'm already looking at opened rich push? Is there any event in UNNotificationContentExtension to catch the new one and update view? The only one i know is: - (void)didReceiveNotification:(UNNotification *)notification but it is triggered only when you open the push first time Edit:

iOS update push in content extension

我怕爱的太早我们不能终老 提交于 2020-03-21 05:16:08
问题 iMessage updates the rich push when it's on the screen. You can see what is user is typing RIGHT NOW, and message will be added to your conversation. So the question is: how i can catch new push notification, when i'm already looking at opened rich push? Is there any event in UNNotificationContentExtension to catch the new one and update view? The only one i know is: - (void)didReceiveNotification:(UNNotification *)notification but it is triggered only when you open the push first time Edit: