UIViewController.viewWillTransition(to:with:) never called for MSMessageAppViewController

Originator:hotngui
Number:rdar://27652448 Date Originated:1/29/2017
Status:Open Resolved:
Product:iOS / Message Extension Product Version:10.2.1
Classification:Serious Bug Reproducible:Yes
 
Area:
Messages Framework

Summary:
I have the need to know when the view changes size, such as when the user changes orientation of the device (so I can adjust the size of my cells in a collectionView).

If you look at my test project you will see the main app behaves as expected by watching the print statements in the console. However the message extension does not print anything.

Steps to Reproduce:
1. uncompress and build the attached test project.
2. Run the Message Extension scheme to see that no print statements are output when the device is rotated.
3. Run the main app to see that the same methods work fine.

Expected Results:
UIViewController.viewWillTransition(to:with:) should get called when an iPad is rotated, or even when the view controller is first displayed.

Actual Results:
No output

Version:
iOS 10.2.1, Xcode 8.2.1 (8C1002)

Notes:


Configuration:
iPad Air 2

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!