Backgrounded Swift app returns 'noCredentials'