public static void processNotification(NSDictionary options, bool fromFinishedLaunching, UIApplicationState applicationState)
{
try {
SystemLogger.Log (SystemLogger.Module.PLATFORM, "******* Checking for PUSH NOTIFICATION data in launch options - fromFinishedLaunching="+fromFinishedLaunching+". application state: "+ applicationState);
if (options != null) {
if (fromFinishedLaunching) {
NSDictionary remoteNotif = (NSDictionary)options.ObjectForKey (UIApplication.LaunchOptionsRemoteNotificationKey);
ProcessRemoteNotification (remoteNotif, fromFinishedLaunching, applicationState);
} else {
ProcessRemoteNotification (options, fromFinishedLaunching, applicationState);
}
} else {
SystemLogger.Log (SystemLogger.Module.PLATFORM, "******* NO launch options");
}
} catch (System.Exception ex) {
SystemLogger.Log (SystemLogger.Module.PLATFORM, "******* Unhandled exception when trying to process notification. fromFinishedLaunching[" + fromFinishedLaunching + "]. Exception message: " + ex.Message);
}
}