Call method when app is in background ios