Fix background issues on iOS devices