Added setBadge() call to applicationDidEnterBackground