It’s working correctly when the app remains in the background but not when the app is closed and opened again…