I need to know if my app was launched from the "open" button in the App Store. As far as I know, I can do this code in didFinishLaunching:
if let launchOptionKey = launchOptions?[.sourceApplication] {
if (launchOptionKey as AnyObject).isEqual("com.apple.AppStore") {
// Do specific code
}
}
How could I simulate a launch from the App Store, to be able to test this code?