remove isApplicationRunInForeground