Background code for an app run in IOS7