Updating openNotification to detect OS version and perform the proper actions