Added fix for refreshing after notification when app was idle