UserInfo's keyboardIsLocalUserInfoKey Is True For Other App's Keyboard

Originator:andrewgregory43
Number:rdar://46903640 Date Originated:21/12/2018
Status:OPEN Resolved:NO
Product:UIKit Product Version:
Classification:BUG Reproducible:YES
 
Summary: 
Switching between App X and Messages App, can result in an incorrect `UIResponder.keyboardIsLocalUserInfoKey` value from the `userInfo` dict of the `UIResponder.keyboardWillShowNotification`. App X is checking if the keyboard notification is local or not, if it is not local then App X should not do anything.

PreRequisites:
* Apps X and and Messages are both launched.
* Apps X is checking for local keyboard notifications.
* Messages has a keyboard being displayed.

Steps to Reproduce:
1. Switch from App X to Messages.
2. Switch Back to App X from Messages.
3. Repeat steps 1-2 until reproed. 

Expected Results:
App X's method for handling keyboard notifications should return early as the notification is not local.

Actual Results:
App X's method checks the `UIResponder.keyboardIsLocalUserInfoKey` and receives a value of `true` and continues to execute its code.

Version/Build:
Xcode 10.1 (10B61)
macOS Mojave 10.14.2
iPhone 8 - 11.4.1 (15G77)
iPhone X Simulator - iOS 12.1
iPhone 8 Simulator - iOS 12.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!