Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Indoor Locaiton

Indoor Locaiton

Avatar for Martin Gratzer

Martin Gratzer

May 22, 2014

Other Decks in Technology

Transcript

  1. NFC

  2. IBEACON RANGE UP TO 50M BATTERY POWERED (1-2Y) USERS RESPOND

    TO NOTIFICATIONS ONE TO MANY $20 - $35 PER BEACON
  3. REGISTER BEACON // Create the beacon region to be monitored.

    CLBeaconRegion *beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:proximityUUID identifier:identifier]; // Register the beacon region with the location manager. [self.locManager startMonitoringForRegion:beaconRegion];
  4. STARTRANGINGBEACONSINREGION: DISTANCE CHANGES - (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region

    { if ([beacons count] > 0) { CLBeacon *nearestExhibit = [beacons firstObject]; // Present the exhibit-specific UI only when // the user is relatively close to the exhibit. if (CLProximityNear == nearestExhibit.proximity) { [self presentExhibitInfoWithMajorValue:nearestExhibit.major.integerValue]; } else { [self dismissExhibitInfo]; } }
  5. DEVICE AS BEACON NSUUID *proximityUUID = [[NSUUID alloc] initWithUUIDString:@"39ED98FF-2900-441A-802F-9C398FC199D2"]; //

    Create the beacon region. CLBeaconRegion *beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:proximityUUID identifier:@"com.mycompany.myregion" // Create a dictionary of advertisement data. NSDictionary *beaconPeripheralData = [beaconRegion peripheralDataWithMeasuredPower:nil]; // Create the peripheral manager. CBPeripheralManager *peripheralManager = [[CBPeripheralManager alloc] initWithDelegate:selfqueue:nil options:nil]; // Start advertising your beacon's data. [peripheralManager startAdvertising:beaconPeripheralData];