omergul / Discovery

A very simple library to discover and retrieve data from nearby devices (even if the peer app works at background).
Apache License 2.0
417 stars 34 forks source link

Start advertise and discovery services on init #28

Open connorgiles opened 8 years ago

connorgiles commented 8 years ago

Currently _shouldAdvertise and _shouldDiscover are being set directly, bypassing [setShouldAdvertise] and [setShouldDiscover]. This pull request calls the functions directly, making sure that the CBPeripheralManager and CBCentralManager are initialized in order for the services to start based off the startOption defined by the user.