The notification function for many platforms.