Modified APAlert constructor to handle notification messages in-class.