Added permission- check when app is in background