added beacon code to the iOS project