In obj-C when another iOS app (mail attachment, web link) was tapped with a file or link associated with my app. I would then catch this on openURL or didFinishLaunchi
didFinishLaunchi
The accepted answer in Swift 3 in case it helps anyone:
self.window?.rootViewController?.present(importAlert, animated: true, completion: nil)