private static void SetLaunchState(UIApplicationState state, NSDictionary userInfo) { if (state != UIApplicationState.Active) { var appState = DonkyCore.Instance.GetService<IAppState>(); appState.WasOpenedFromNotification = true; appState.LaunchingNotificationId = userInfo.GetValueOrDefault<string>("notificationId", null); } }