Add notification testing tools to Xcode

Originator:swimming.bird
Number:rdar://26879360 Date Originated:18-Jun-2016
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8
Classification: Reproducible:
 
Summary:
iOS 10 brings two new extensions for interacting with push notifications.  The notification service extension is given a limited time to run and transform an incoming notification. If it fails to act within the allotted time no transformation will be completed.

Currently the only way to test these notifications is to fire a local notification from within your app. Testing this way doesn’t provide an accurate method for testing a real experience in the simulator or on device. With a time constraint using a local notification means that the app is already in cache and the extension will load faster than with a cold cache. Without the ability to test a cold cache it could be difficult to optimize the extension to perform its action in the appropriate time.

This could be easily alleviated with including a tool in Xcode that would trigger a fake APNS action within an attached device or simulator.

Steps to Reproduce:
.

Expected Results:
.

Actual Results:
.

Version:
Xcode 8 beta 1

Notes:


Configuration:


Attachments:

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!