Notifications mirrored to the Apple Watch do not always use content from the Notification Service Extension

Originator:btang1
Number:rdar://31739581 Date Originated:4/20/17
Status:Open Resolved:No
Product:iOS SDK Product Version:10.3.1
Classification:Serious Bug Reproducible:Always
 
Area:
Notifications

Summary:
With an app using the Notification Service Extension (NSE), notifications mirrored to the Apple Watch do not use content from the NSE when displayed as pop-ups.  Notifications displayed in the Apple Watch's notification center, however, do contain notifications with properly mutated content from the NSE.

See the attached notifs-inconsistent.JPG for a photo showing the notification on the device using mutated content but the notification mirrored to the watch is using original content.
See the attached watch-notif-center.JPG for a photo showing the notification on the watch in notification center properly using mutated content.
See the attached sysdiagnose_2017.04.20_11-52-54-0700.tar.gz for a sysdiagnose trace captured with the Continuity Debugging profiled installed.  Repro time was right before the sysdiagnose capture.

Steps to Reproduce:
1. Have an Apple Watch paired with a device
2. Create an app with an NSE
3. Have the NSE always mutate content in some fixed way (ex: always prefix the alert body with a fixed string)
4. Turn the device display off and ensure the watch display is on
5. Send a notification to the app/device targeting the NSE (mutable-content flag set and non-empty alert body)
6. Observe the notification content on the watch and the device
7. Observe the notification content in the watch's notification center

Expected Results:
6. The notification on both the device and the watch should be displayed with mutated content
7. The notification content in the watch's notification center is using the proper mutated content

Actual Results:
6. The notification on the device uses the content mutated by the NSE, but the notification mirrored to the watch pop-up notification does not.
7. The notification content in the watch's notification center is using the proper mutated content

Version:
iOS 10.3.1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!