It finally happened to me. A user entered an emoji into an input field, and a production system broke.
Below is some example code that covers common patterns for catching specific types of errors. This code is valid for Swift 5.1. I figure this might be useful for some folks since the official documentation doesn’t provide examples for all of these, and few tutorials cover it completely.
This post serves as a guide for the order in which application delegate methods are invoked in response to certain actions on iOS. This information is current only for iOS 12.1 unless indicated otherwise.