Bug 58243 - NSApplicationLaunchUserNotificationKey is missing
Summary: NSApplicationLaunchUserNotificationKey is missing
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: 15.6
Assignee: Jon Goldberger [MSFT]
Depends on:
Reported: 2017-07-19 12:56 UTC by Marko
Modified: 2017-09-25 20:10 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Marko 2017-07-19 12:56:03 UTC
NSApplicationLaunchUserNotificationKey is missing in the NSApplication class: https://developer.apple.com/documentation/appkit/nsapplicationlaunchusernotificationkey?language=objc#declarations

The other launch keys are available: NSApplication.LaunchIsDefaultLaunchKey and NSApplication.LaunchRemoteNotificationKey
Comment 1 Chris Hamons 2017-07-19 13:58:04 UTC
This can be worked around with the following code until it gets fixed:
var launchKey = ObjCRuntime.Dlfcn.GetStringConstant (ObjCRuntime.Dlfcn.dlopen ("/System/Library/Frameworks/AppKit.framework/AppKit", 0), "NSApplicationLaunchUserNotificationKey");
Comment 2 Marko 2017-07-19 15:52:30 UTC
Thank you, Chris.
Comment 3 Chris Hardy [MSFT] 2017-09-21 14:54:41 UTC
Moving out to 15.6 as the target milestone as there is a workaround available
Comment 4 Jon Goldberger [MSFT] 2017-09-22 23:06:08 UTC
PR : https://github.com/xamarin/xamarin-macios/pull/2765