Remote notification notification handler not invoked while MDM Single App Mode enabled

Originator:erodewald
Number:rdar://35539728 Date Originated:11/14/2017
Status:Open Resolved:
Product:iOS + SDK Notifications Product Version:11
Classification:Serious bug Reproducible:Always
 
Area:
Notifications

Summary: 
On iOS 11 currently up to 11.2 Beta 3, remote notifications to a foregrounded application are not delivered when the MDM-enrolled device is locked into autonomous Single App Mode. When Single App Mode is disabled, messages are immediately delivered to the application. 

Based on the logs of our APNs-based Pushy.me SDK, it can be inferred that the messages are received by the device, but the notification handler is simply never invoked. 

Steps to Reproduce:
1. Get iOS 11 device enrolled into MDM
2. Run application with notifications enabled/allowed, app in foreground, not in single app mode
3. Receive a message successfully.
4. Enable Single App Mode (we do this via VMware Airwatch portal)
5. Verify in single app mode by hitting home button, if it doesn't leave to springboard, you are in single app mode
6. Send a message to the app - it will NOT invoke the notification handler.


Expected Results:
Notification will be received regardless of whether or not Single App mode is enabled

Actual Results:
Notification is not received in Single App Mode. 

Version/Build:
iOS 11 (tested: 11, 11.1, 11.1.1, 11.2 beta 3)

Configuration:
The following messages have been sent and no variations work when single app mode is on. All work with it off. 
1. 
{
	"data":{...snip...}
	"to":"device_token",
	"content_available":true,
	"time_to_live":604800,
	"notification":{
		"title": "",
		"sound": "ping.aiff"
	}
}

2. 
{
	"data":{...snip...}
	"to":"device_token",
	"content_available":true,
         "mutable_content":true,
	"time_to_live":604800,
	"notification":{
		"title": "",
		"description": "",
		"sound": "ping.aiff"
	}
}

3.
{
	"data":{...snip...}
	"to":"device_token",
	"content_available":true,
	"time_to_live":604800
}

Comments

Apple's response upon closing the issue

Engineering has provided the following feedback regarding this issue: Pushes are not guaranteed to be delivered, and will not be if system conditions are sub-optimal. Thank you for your feedback. Engineering has determined that this issue behaves as intended. We are now closing this bug report.

By erodewald at Jan. 5, 2018, 6:17 p.m. (reply...)

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!