官术网_书友最值得收藏!

Chapter 2. Detecting Beacons – Showing an Advert

In the previous chapter, we introduced you to the amazing possibilities of iBeacon and brought the UUID/major/minor broadcasting triplet to your attention. We also built our first, albeit very simple, app that detected the presence of beacons.

In this chapter, we're going to expand our knowledge and get an in-depth understanding of the broadcasting triplet, and we'll expand on some of the important classes within the Core Location framework.

To help demonstrate the more in-depth concepts, we'll build an app that shows different advertisements depending on the major and minor values of the beacon that it detects. We'll be using the context of an imaginary department store called Matey's. Matey's are currently undergoing iBeacon trials in their flagship London store and at the moment are giving offers on their different-themed restaurants and also on their ladies clothing to users who are using their branded app.

主站蜘蛛池模板: 桃源县| 当涂县| 遂平县| 长子县| 华安县| 阳东县| 弥渡县| 鄂伦春自治旗| 武义县| 湘乡市| 肥西县| 虹口区| 普陀区| 南和县| 云林县| 吉木乃县| 武川县| 白水县| 阳曲县| 肃宁县| 临江市| 虹口区| 边坝县| 渭源县| 漳州市| 开鲁县| 崇仁县| 天镇县| 沾化县| 临城县| 察隅县| 内黄县| 文山县| 拉萨市| 樟树市| 舟曲县| 漳州市| 大竹县| 西和县| 融水| 陈巴尔虎旗|