Beacon App's Objective C Code